File tree Expand file tree Collapse file tree 2 files changed +0
-40
lines changed
WooCommerce/WooCommerceTests
ViewRelated/Products/Edit Product Expand file tree Collapse file tree 2 files changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -40,29 +40,6 @@ final class ReviewsViewModelTests: XCTestCase {
4040 XCTAssertEqual ( viewModel. isEmpty, mockDataSource. isEmpty)
4141 }
4242
43- func testDisplayPlaceHolderReviewsStopsForWardingEventsInDataSource( ) {
44- // Given
45- let mockDataSource = MockReviewsDataSource ( )
46- let viewModel = ReviewsViewModel ( siteID: sampleSiteID, data: mockDataSource)
47- viewModel. didDisplayPlaceholderReviews ( )
48-
49- // Then
50- XCTAssertTrue ( mockDataSource. stopsForwardingEventsWasHit)
51- }
52-
53- func testRemovePlaceHolderReviewsStartsForWardingEventsInDataSource( ) {
54- // Given
55- let table = UITableView ( )
56- let mockDataSource = MockReviewsDataSource ( )
57- let viewModel = ReviewsViewModel ( siteID: sampleSiteID, data: mockDataSource)
58-
59- // When
60- viewModel. didRemovePlaceholderReviews ( tableView: table)
61-
62- // Then
63- XCTAssertTrue ( mockDataSource. startForwardingEventsWasHit)
64- }
65-
6643 func testConfigureResultsControllerStartsForWardingEventsAndStartsObservingReviewsInDataSource( ) {
6744 // Given
6845 let table = UITableView ( )
Original file line number Diff line number Diff line change @@ -34,23 +34,6 @@ final class ProductReviewsViewModelTests: XCTestCase {
3434 XCTAssertEqual ( viewModel. isEmpty, mockDataSource. isEmpty)
3535 }
3636
37- func test_did_display_placeHolder_reviews_stops_forwarding_events_in_dataSource( ) {
38- let ds = mockDataSource as! MockProductReviewsDataSource
39-
40- viewModel. didDisplayPlaceholderReviews ( )
41-
42- XCTAssertTrue ( ds. stopsForwardingEventsWasHit)
43- }
44-
45- func test_did_remove_placeHolder_reviews_starts_forwarding_events_in_dataSource( ) {
46- let table = UITableView ( )
47- let ds = mockDataSource as! MockProductReviewsDataSource
48-
49- viewModel. didRemovePlaceholderReviews ( tableView: table)
50-
51- XCTAssertTrue ( ds. startForwardingEventsWasHit)
52- }
53-
5437 func test_configure_resultsController_starts_forwarding_events_and_starts_observing_reviews_in_dataSource( ) {
5538 let table = UITableView ( )
5639 let ds = mockDataSource as! MockProductReviewsDataSource
You can’t perform that action at this time.
0 commit comments