File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,11 @@ public function testAdd(): void
192192 ];
193193 /** @var string $result */
194194 $ result = $ this ->_webApiCall ($ serviceInfo , ['sku ' => $ productSku , 'option ' => $ option ]);
195- $ updatedproduct = $ productRepository ->get ($ productSku );
196- $ this ->assertEquals ('configurable ' , $ updatedproduct ->getTypeId ());
197195 $ arr = explode ("000 " , $ result );
198196 $ this ->assertEquals ('configurable ' , $ arr [1 ]);
197+ $ productRepository1 = Bootstrap::getObjectManager ()->create (ProductRepository::class);
198+ $ updatedproduct = $ productRepository1 ->get ($ productSku );
199+ $ this ->assertEquals ('configurable ' , $ updatedproduct ->getTypeId ());
199200 //$this->assertGreaterThan(0, $result);
200201 }
201202
You can’t perform that action at this time.
0 commit comments