Skip to content

Commit e651866

Browse files
committed
Correct failing unit tests
1 parent 98f71c8 commit e651866

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

WooCommerce/WooCommerceTests/ViewRelated/CardPresentPayments/CardPresentPaymentsOnboardingUseCaseTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class CardPresentPaymentsOnboardingUseCaseTests: XCTestCase {
6969

7070
}
7171

72-
// TODO: Unskip
72+
// TODO: Unskip in #5269
7373
func test_onboarding_returns_wcpay_not_activated_when_wcpay_installed_but_not_active() {
7474
// Given
7575
setupCountry(country: .us)
@@ -364,9 +364,10 @@ private extension CardPresentPaymentsOnboardingUseCaseTests {
364364
.copy(
365365
siteID: sampleSiteID,
366366
plugin: "woocommerce-payments",
367-
// status: status, // TODO
367+
// status: status, // TODO fix in #5269
368368
name: "WooCommerce Payments",
369-
version: version.rawValue
369+
version: version.rawValue,
370+
networkActivated: true // TODO remove in #5269
370371
)
371372
storageManager.insertSampleSystemPlugin(readOnlySystemPlugin: plugin)
372373
}

Yosemite/YosemiteTests/Stores/SystemStatusStoreTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class SystemStatusStoreTests: XCTestCase {
5050

5151
// Then
5252
XCTAssertTrue(result.isSuccess)
53-
XCTAssertEqual(viewStorage.countObjects(ofType: StorageSystemPlugin.self), 3) // number of systemPlugins in json file
53+
XCTAssertEqual(viewStorage.countObjects(ofType: StorageSystemPlugin.self), 6) // number of systemPlugins in json file
5454
}
5555

5656
func test_synchronizeSystemPlugins_removes_stale_systemPlugins_correctly() {
@@ -74,7 +74,7 @@ class SystemStatusStoreTests: XCTestCase {
7474

7575
// Then
7676
XCTAssertTrue(result.isSuccess)
77-
XCTAssertEqual(viewStorage.countObjects(ofType: StorageSystemPlugin.self), 3) // number of systemPlugins in json file
77+
XCTAssertEqual(viewStorage.countObjects(ofType: StorageSystemPlugin.self), 6) // number of systemPlugins in json file
7878
XCTAssertNil(viewStorage.loadSystemPlugin(siteID: sampleSiteID, name: staleSystemPluginName))
7979
}
8080

0 commit comments

Comments
 (0)