File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -209,15 +209,14 @@ public function testBundleImportUpdateValuesWithQuestionMark(): void
209209 $ productId = $ resource ->getIdBySku (self ::TEST_PRODUCT_NAME );
210210 $ this ->assertIsNumeric ($ productId );
211211 /** @var Product $product */
212- $ product = $ this ->objectManager ->create (ProductRepository ::class);
213- $ product ->load ( $ productId );
212+ $ product = $ this ->objectManager ->create (ProductRepositoryInterface ::class);
213+ $ ProductRepository = $ product ->get ( self :: TEST_PRODUCT_NAME );
214214
215- $ this ->assertFalse ($ product ->isObjectNew ());
216- $ this ->assertEquals (self ::TEST_PRODUCT_NAME , $ product ->getName ());
217- $ this ->assertEquals (self ::TEST_PRODUCT_TYPE , $ product ->getTypeId ());
218- $ this ->assertEquals (1 , $ product ->getShipmentType ());
215+ $ this ->assertEquals (self ::TEST_PRODUCT_NAME , $ ProductRepository ->getName ());
216+ $ this ->assertEquals (self ::TEST_PRODUCT_TYPE , $ ProductRepository ->getTypeId ());
217+ $ this ->assertEquals (1 , $ ProductRepository ->getShipmentType ());
219218
220- $ bundleOptionCollection = $ product ->getExtensionAttributes ()->getBundleProductOptions ();
219+ $ bundleOptionCollection = $ ProductRepository ->getExtensionAttributes ()->getBundleProductOptions ();
221220 $ this ->assertCount (1 , $ bundleOptionCollection );
222221
223222 $ this ->importedProductSkus = ['Simple 1 ' , 'Bundle 1 ' ];
You can’t perform that action at this time.
0 commit comments