Skip to content

Commit e4b2c11

Browse files
committed
ACP2E-412: Cant link configurable options with REST to product created on Backend
1 parent 81be7cf commit e4b2c11

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dev/tests/api-functional/testsuite/Magento/ConfigurableProduct/Api/OptionRepositoryTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)