@@ -20,14 +20,14 @@ public function testSave()
20
20
/** @var ProductRepositoryInterface $productRepository */
21
21
$ productRepository = $ objectManager ->get (ProductRepositoryInterface::class);
22
22
/** @var ProductInterface $product */
23
- $ product = $ productRepository ->get ('simple ' );
23
+ $ product = $ productRepository ->get ('simple ' , false , null , true );
24
24
25
25
/** @var ProductExtensionInterface $ea */
26
26
$ ea = $ product ->getExtensionAttributes ();
27
27
$ ea ->getStockItem ()->setQty (555 );
28
28
$ productRepository ->save ($ product );
29
29
30
- $ product = $ productRepository ->get ('simple ' );
30
+ $ product = $ productRepository ->get ('simple ' , false , null , true );
31
31
$ this ->assertEquals (555 , $ product ->getExtensionAttributes ()->getStockItem ()->getQty ());
32
32
33
33
$ stockItem = $ product ->getExtensionAttributes ()->getStockItem ();
@@ -37,7 +37,7 @@ public function testSave()
37
37
$ stockItemRepository ->save ($ stockItem );
38
38
$ this ->assertEquals (200 , $ product ->getExtensionAttributes ()->getStockItem ()->getQty ());
39
39
40
- $ product = $ productRepository ->get ('simple ' );
40
+ $ product = $ productRepository ->get ('simple ' , false , null , true );
41
41
$ this ->assertEquals (200 , $ product ->getExtensionAttributes ()->getStockItem ()->getQty ());
42
42
}
43
43
}
0 commit comments