diff --git a/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift b/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift index 146bccf71..565edb8d2 100644 --- a/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift +++ b/Frameworks/Account/AccountTests/Feedly/FeedlyCheckpointOperationTests.swift @@ -33,7 +33,7 @@ class FeedlyCheckpointOperationTests: XCTestCase { didFinishExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(operation) + MainThreadOperationQueue.shared.add(operation) waitForExpectations(timeout: 2) } @@ -53,7 +53,7 @@ class FeedlyCheckpointOperationTests: XCTestCase { didFinishExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(operation) + MainThreadOperationQueue.shared.add(operation) MainThreadOperationQueue.shared.cancelOperations([operation]) diff --git a/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift b/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift index 974356851..e64a2a421 100644 --- a/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift +++ b/Frameworks/Account/AccountTests/Feedly/FeedlyGetCollectionsOperationTests.swift @@ -25,7 +25,7 @@ class FeedlyGetCollectionsOperationTests: XCTestCase { completionExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(getCollections) + MainThreadOperationQueue.shared.add(getCollections) waitForExpectations(timeout: 2) @@ -83,7 +83,7 @@ class FeedlyGetCollectionsOperationTests: XCTestCase { completionExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(getCollections) + MainThreadOperationQueue.shared.add(getCollections) waitForExpectations(timeout: 2) diff --git a/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift b/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift index c1063af86..7492baa90 100644 --- a/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift +++ b/Frameworks/Account/AccountTests/Feedly/FeedlyOperationTests.swift @@ -52,7 +52,7 @@ class FeedlyOperationTests: XCTestCase { let testOperation = TestOperation() testOperation.didCallMainExpectation = expectation(description: "Did Call Main") - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) waitForExpectations(timeout: 2) } @@ -67,7 +67,7 @@ class FeedlyOperationTests: XCTestCase { testOperation.delegate = delegate - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) waitForExpectations(timeout: 2) @@ -90,7 +90,7 @@ class FeedlyOperationTests: XCTestCase { XCTAssertFalse(testOperation.isCanceled) - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) waitForExpectations(timeout: 2) @@ -109,7 +109,7 @@ class FeedlyOperationTests: XCTestCase { XCTAssertFalse(testOperation.isCanceled) - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) MainThreadOperationQueue.shared.cancelOperations([testOperation]) @@ -169,7 +169,7 @@ class FeedlyOperationTests: XCTestCase { completionExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) XCTAssertTrue(progress.numberRemaining == 1) MainThreadOperationQueue.shared.cancelOperations([testOperation]) @@ -195,7 +195,7 @@ class FeedlyOperationTests: XCTestCase { completionExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) XCTAssertTrue(progress.numberRemaining == 1) @@ -220,7 +220,7 @@ class FeedlyOperationTests: XCTestCase { completionExpectation.fulfill() } - MainThreadOperationQueue.shared.addOperation(testOperation) + MainThreadOperationQueue.shared.add(testOperation) XCTAssertTrue(progress.numberRemaining == 1)