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
192
192
];
193
193
/** @var string $result */
194
194
$ result = $ this ->_webApiCall ($ serviceInfo , ['sku ' => $ productSku , 'option ' => $ option ]);
195
- $ updatedproduct = $ productRepository ->get ($ productSku );
196
- $ this ->assertEquals ('configurable ' , $ updatedproduct ->getTypeId ());
197
195
$ arr = explode ("000 " , $ result );
198
196
$ this ->assertEquals ('configurable ' , $ arr [1 ]);
197
+ $ productRepository1 = Bootstrap::getObjectManager ()->create (ProductRepository::class);
198
+ $ updatedproduct = $ productRepository1 ->get ($ productSku );
199
+ $ this ->assertEquals ('configurable ' , $ updatedproduct ->getTypeId ());
199
200
//$this->assertGreaterThan(0, $result);
200
201
}
201
202
You can’t perform that action at this time.
0 commit comments