7 require dirname(dirname(
__DIR__)) .
'/Catalog/_files/category.php';
9 require dirname(dirname(
__DIR__)) .
'/Store/_files/second_store.php';
11 require dirname(dirname(
__DIR__)) .
'/Catalog/_files/products_with_multiselect_attribute.php';
13 require dirname(dirname(
__DIR__)) .
'/Catalog/_files/product_text_attribute.php';
24 'title' =>
'Option 1',
25 'type' =>
'drop_down',
29 'option_type_id' =>
null,
30 'title' =>
'Option 1 & Value 1"',
32 'price_type' =>
'fixed' 35 'option_type_id' =>
null,
36 'title' =>
'Option 1 & Value 2"',
38 'price_type' =>
'fixed' 41 'option_type_id' =>
null,
42 'title' =>
'Option 1 & Value 3"',
44 'price_type' =>
'fixed' 49 'title' =>
'test_option_code_2',
54 'price_type' =>
'fixed',
56 'max_characters' => 10,
61 \
Magento\Catalog\Model\Product\Type::TYPE_SIMPLE
73 [
'text_attribute' =>
'!@#$%^&*()_+1234567890-=|\\:;"\'<,>.?/']
75 [0 => [
'website_id' => 0,
'cust_group' => 0,
'price_qty' => 3,
'price' => 8]]
77 \
Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH
79 \
Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
83 [
'qty' => 100,
'is_in_stock' => 1,
'manage_stock' => 1]
84 )->setCanSaveCustomOptions(
89 [
$product->getId() => [
'position' => 1]]
defined('TESTS_BP')||define('TESTS_BP' __DIR__
static getObjectManager()