Skip to content

Commit 3336e46

Browse files
committed
MockOrders: Import Yosemite to reduce the Networking imports we have
Also since we can use Yosemite for this anyway!
1 parent 90be950 commit 3336e46

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

WooCommerce/WooCommerceTests/Tools/MockOrders.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
@testable import Networking
1+
import Yosemite
22

33
final class MockOrders {
44
let siteID: Int64 = 1234
55
let orderID: Int64 = 5678
66

7-
func sampleOrder() -> Networking.Order {
7+
func sampleOrder() -> Order {
88
return Order(siteID: siteID,
99
orderID: orderID,
1010
parentID: 0,
@@ -31,7 +31,7 @@ final class MockOrders {
3131
refunds: [])
3232
}
3333

34-
func sampleOrderCreatedInCurrentYear() -> Networking.Order {
34+
func sampleOrderCreatedInCurrentYear() -> Order {
3535
return Order(siteID: siteID,
3636
orderID: orderID,
3737
parentID: 0,
@@ -58,15 +58,15 @@ final class MockOrders {
5858
refunds: [])
5959
}
6060

61-
func sampleShippingLines() -> [Networking.ShippingLine] {
61+
func sampleShippingLines() -> [ShippingLine] {
6262
return [ShippingLine(shippingID: 123,
6363
methodTitle: "International Priority Mail Express Flat Rate",
6464
methodID: "usps",
6565
total: "133.00",
6666
totalTax: "0.00")]
6767
}
6868

69-
func sampleAddress() -> Networking.Address {
69+
func sampleAddress() -> Address {
7070
return Address(firstName: "Johnny",
7171
lastName: "Appleseed",
7272
company: "",
@@ -140,7 +140,7 @@ final class MockOrders {
140140

141141
/// An address that may or may not be broken, that came from `broken-order.json`
142142
///
143-
func brokenAddress() -> Networking.Address {
143+
func brokenAddress() -> Address {
144144
return Address(firstName: "",
145145
lastName: "",
146146
company: "",
@@ -156,7 +156,7 @@ final class MockOrders {
156156

157157
/// A shipping line that may or may not be broken, from `broken-order.json`
158158
///
159-
func brokenShippingLines() -> [Networking.ShippingLine] {
159+
func brokenShippingLines() -> [ShippingLine] {
160160
return [ShippingLine(shippingID: 1,
161161
methodTitle: "Shipping",
162162
methodID: "",

0 commit comments

Comments
 (0)