@@ -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