Skip to content

Commit

Permalink
Remove an unit test which is duplicated with others
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Nov 8, 2023
1 parent 3445547 commit cfe7a67
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions WordPress/WordPressTest/PostRepositoryPostsListTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@ class PostRepositoryPostsListTests: CoreDataTestCase {
XCTAssertEqual(total, 15)
}

func testFetchingAllPages() async throws {
stubGetPostsList(type: "page", total: 1_120)

let pages = try await repository.fetchAllPages(statuses: [], in: blogID).value
XCTAssertEqual(pages.count, 1_120)

// There should still be 15 posts after the search: no local posts should be deleted
let total = await contextManager.performQuery { $0.countObjects(ofType: Page.self) }
XCTAssertEqual(total, 1_120)
}

}

extension CoreDataTestCase {
Expand Down

0 comments on commit cfe7a67

Please sign in to comment.