Test save of swatch attribute
Definition at line 16 of file AttributeCreateTest.php.
◆ testSetScopeDefault()
@magentoAppArea adminhtml @magentoDbIsolation enabled
Definition at line 22 of file AttributeCreateTest.php.
28 'is_visible_on_front' => 1,
29 'is_visible_in_advanced_search' => 0,
30 'attribute_code' =>
'color_swatch',
34 'is_filterable_in_search' => 0,
35 'frontend_label' =>
'Attribute ',
39 $data[
'frontend_input'] =
'swatch_visual';
40 $data[
'swatch_input_type'] =
'visual';
41 $data[
'swatchvisual'][
'value'] = array_reduce(
53 $data[
'optionvisual'][
'value'] = array_reduce(
62 $data[
'options'][
'option'] = array_reduce(
66 'label' =>
'option ' .
$index,
67 'value' =>
'option_' .
$index 79 $attribute =
$om->get(ProductAttributeInterfaceFactory::class)
80 ->create([
'data' =>
$data]);
86 $this->assertEquals(
'swatch_visual',
$attribute->getFrontendInput());
static getObjectManager()
The documentation for this class was generated from the following file: