Skip to content

Commit d4330c3

Browse files
committed
Fix build errors.
1 parent e725b3b commit d4330c3

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Yosemite/Yosemite/Stores/PaymentStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private extension PaymentStore {
6464
func loadSiteCurrentPlan(siteID: Int64,
6565
completion: (Result<WPComSitePlan, Error>) -> Void) {
6666
// TODO: 8558 - fetch site's current plan
67-
completion(.success(.init(plan: .init(productID: 0, name: "", formattedPrice: ""), hasDomainCredit: true)))
67+
completion(.success(.init(hasDomainCredit: true)))
6868
}
6969

7070
func createCart(productID: String,

Yosemite/YosemiteTests/Mocks/Networking/Remote/MockDomainRemote.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ extension MockDomainRemote: DomainRemoteProtocol {
2121
}
2222
return try result.get()
2323
}
24+
25+
func loadDomains(siteID: Int64) async throws -> [SiteDomain] {
26+
// TODO: 8558 - Yosemite layer
27+
throw NetworkError.notFound
28+
}
2429
}

Yosemite/YosemiteTests/Mocks/Networking/Remote/MockPaymentRemote.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ extension MockPaymentRemote: PaymentRemoteProtocol {
3030
return try result.get()
3131
}
3232

33+
func loadSiteCurrentPlan(siteID: Int64) async throws -> WPComSitePlan {
34+
// TODO: 8558 - Yosemite layer
35+
throw NetworkError.notFound
36+
}
37+
3338
func createCart(siteID: Int64, productID: Int64) async throws {
3439
guard let result = createCartResult else {
3540
XCTFail("Could not find result for creating a cart.")

0 commit comments

Comments
 (0)