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
209
209
$ productId = $ resource ->getIdBySku (self ::TEST_PRODUCT_NAME );
210
210
$ this ->assertIsNumeric ($ productId );
211
211
/** @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 );
214
214
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 ());
219
218
220
- $ bundleOptionCollection = $ product ->getExtensionAttributes ()->getBundleProductOptions ();
219
+ $ bundleOptionCollection = $ ProductRepository ->getExtensionAttributes ()->getBundleProductOptions ();
221
220
$ this ->assertCount (1 , $ bundleOptionCollection );
222
221
223
222
$ this ->importedProductSkus = ['Simple 1 ' , 'Bundle 1 ' ];
You can’t perform that action at this time.
0 commit comments