6 require
__DIR__ .
'/unique_input_attribute.php';
13 ->setAttributeSetId(4)
14 ->setName(
'Simple Product with unique input attribute')
15 ->setSku(
'simple product with unique input attribute')
17 ->setVisibility(\
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
18 ->setStatus(\
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
20 ->setStockData([
'qty' => 100,
'is_in_stock' => 1,
'manage_stock' => 1])
21 ->setData(
$attribute->getAttributeCode(),
'unique value')
defined('TESTS_BP')||define('TESTS_BP' __DIR__
static getObjectManager()