product attributes
This commit is contained in:
25
tests/Fixture/ProductAttributesFixture.php
Normal file
25
tests/Fixture/ProductAttributesFixture.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CakeProducts\Test\Fixture;
|
||||
|
||||
use Cake\TestSuite\Fixture\TestFixture;
|
||||
|
||||
/**
|
||||
* ProductAttributesFixture
|
||||
*/
|
||||
class ProductAttributesFixture extends TestFixture
|
||||
{
|
||||
/**
|
||||
* Init method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function init(): void
|
||||
{
|
||||
$this->records = [
|
||||
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
}
|
||||
@@ -21,10 +21,24 @@ class ProductCategoryAttributeOptionsFixture extends TestFixture
|
||||
[
|
||||
'id' => 'e06f1723-2456-483a-b3c4-004603e032a8',
|
||||
'product_category_attribute_id' => '37078cf0-0130-4b93-bb7e-abe7d665ed2c',
|
||||
'attribute_value' => 'Lorem ipsum dolor sit amet',
|
||||
'attribute_label' => 'Lorem ipsum dolor sit amet',
|
||||
'attribute_value' => 'Red',
|
||||
'attribute_label' => 'Red',
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'id' => 'e06f1723-2456-483a-b3c4-004603e032a1',
|
||||
'product_category_attribute_id' => '37078cf0-0130-4b93-bb7e-abe7d665ed2c',
|
||||
'attribute_value' => 'Blue',
|
||||
'attribute_label' => 'Blue',
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'id' => 'e06f1723-2456-483a-b3c4-004603e032a2',
|
||||
'product_category_attribute_id' => '37078cf0-0130-4b93-bb7e-abe7d665ed2c',
|
||||
'attribute_value' => 'Green',
|
||||
'attribute_label' => 'Green',
|
||||
'enabled' => 1,
|
||||
]
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user