Skip to content

Commit 46b7571

Browse files
committed
Update test to have an excluded product
1 parent 82a73a0 commit 46b7571

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Modules/Tests/StorageTests/GRDB/PersistedProductSearchQueryTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ struct PersistedProductSearchQueryTests {
1111
grdbManager = try GRDBManager()
1212

1313
// Initialize site
14+
let siteID = siteID
1415
try await grdbManager.databaseConnection.write { db in
1516
try PersistedSite(id: siteID).insert(db)
1617
}
@@ -202,6 +203,10 @@ struct PersistedProductSearchQueryTests {
202203
PersistedProduct(id: 8, siteID: siteID, name: "Coffee Maker", productTypeKey: "variable",
203204
fullDescription: nil, shortDescription: nil, sku: nil, globalUniqueID: nil,
204205
price: "100.00", downloadable: false, parentID: 0, manageStock: false,
206+
stockQuantity: nil, stockStatusKey: "instock"),
207+
PersistedProduct(id: 9, siteID: siteID, name: "Tea Strainer", productTypeKey: "variable",
208+
fullDescription: nil, shortDescription: nil, sku: nil, globalUniqueID: nil,
209+
price: "5.00", downloadable: false, parentID: 0, manageStock: false,
205210
stockQuantity: nil, stockStatusKey: "instock")
206211
]
207212
for product in products {

0 commit comments

Comments
 (0)