Skip to content

Commit ee128e1

Browse files
committed
Fix tests by updating the products with missing inventory/shipping/categories/brief description.
1 parent 7f4864e commit ee128e1

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

WooCommerce/WooCommerceTests/ViewRelated/Products/BottomSheetListSelector/ProductFormBottomSheetListSelectorCommandTests.swift

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,20 @@ final class ProductFormBottomSheetListSelectorCommandTests: XCTestCase {
122122

123123
private extension ProductFormBottomSheetListSelectorCommandTests {
124124
enum Fixtures {
125-
static let physicalProduct = MockProduct().product(downloadable: false, virtual: false)
126-
static let virtualProduct = MockProduct().product(downloadable: false, virtual: true)
127-
static let downloadableProduct = MockProduct().product(downloadable: true, virtual: false)
125+
// downloadable: false, virtual: false, missing inventory/shipping/categories/brief description
126+
static let physicalProduct = MockProduct().product(downloadable: false, briefDescription: "", manageStock: true, sku: nil, stockQuantity: nil,
127+
dimensions: ProductDimensions(length: "", width: "", height: ""), weight: nil,
128+
virtual: false,
129+
categories: [])
130+
// downloadable: false, virtual: true, missing inventory/shipping/categories/brief description
131+
static let virtualProduct = MockProduct().product(downloadable: false, briefDescription: "", manageStock: true, sku: nil, stockQuantity: nil,
132+
dimensions: ProductDimensions(length: "", width: "", height: ""), weight: nil,
133+
virtual: true,
134+
categories: [])
135+
// downloadable: true, virtual: true, missing inventory/shipping/categories/brief description
136+
static let downloadableProduct = MockProduct().product(downloadable: true, briefDescription: "", manageStock: true, sku: nil, stockQuantity: nil,
137+
dimensions: ProductDimensions(length: "", width: "", height: ""), weight: nil,
138+
virtual: true,
139+
categories: [])
128140
}
129141
}

0 commit comments

Comments
 (0)