Skip to content

Commit e020c0d

Browse files
committed
ACP2E-412: Cant link configurable options with REST to product created on Backend
1 parent 3a604e9 commit e020c0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
*/
1818
class OptionRepositoryTest extends \Magento\TestFramework\TestCase\WebapiAbstract
1919
{
20-
const SERVICE_NAME = 'configurableProductOptionRepositoryV1';
21-
const SERVICE_VERSION = 'V1';
22-
const RESOURCE_PATH = '/V1/configurable-products';
20+
public const SERVICE_NAME = 'configurableProductOptionRepositoryV1';
21+
public const SERVICE_VERSION = 'V1';
22+
public const RESOURCE_PATH = '/V1/configurable-products';
2323

2424
/**
2525
* @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable.php
@@ -167,7 +167,7 @@ public function testAdd(): void
167167
$attribute = $attributeRepository->get('catalog_product', 'test_configurable');
168168

169169
$productSku = 'simple';
170-
$productRepository = $this->objectManager->create(ProductRepository::class);
170+
$productRepository = Bootstrap::getObjectManager()->create(ProductRepository::class);
171171
$product = $productRepository->get($productSku);
172172
$this->assertEquals('simple', $product->getTypeId());
173173
$serviceInfo = [

0 commit comments

Comments
 (0)