Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace Magento\ConfigurableProduct\Api;

use Magento\TestFramework\Helper\Bootstrap;
use Magento\Eav\Api\AttributeRepositoryInterface;

class OptionRepositoryTest extends \Magento\TestFramework\TestCase\WebapiAbstract
{
const SERVICE_NAME = 'configurableProductOptionRepositoryV1';
Expand Down Expand Up @@ -138,6 +141,12 @@ public function testDelete()
*/
public function testAdd()
{
/** @var AttributeRepositoryInterface $attributeRepository */
$attributeRepository = Bootstrap::getObjectManager()->create(AttributeRepositoryInterface::class);

/** @var \Magento\Eav\Api\Data\AttributeInterface $attribute */
$attribute = $attributeRepository->get('catalog_product', 'test_configurable');

$productSku = 'simple';
$serviceInfo = [
'rest' => [
Expand All @@ -151,7 +160,7 @@ public function testAdd()
]
];
$option = [
'attribute_id' => 'test_configurable',
'attribute_id' => $attribute->getAttributeId(),
'label' => 'Test',
'values' => [
[
Expand Down