product variants table split off from category variants table, variant values table updated to reflect
This commit is contained in:
52
tests/Fixture/ProductVariantsFixture.php
Normal file
52
tests/Fixture/ProductVariantsFixture.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CakeProducts\Test\Fixture;
|
||||
|
||||
use Cake\TestSuite\Fixture\TestFixture;
|
||||
|
||||
/**
|
||||
* ProductVariantsFixture
|
||||
*/
|
||||
class ProductVariantsFixture extends TestFixture
|
||||
{
|
||||
/**
|
||||
* Init method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function init(): void
|
||||
{
|
||||
$this->records = [
|
||||
[
|
||||
'id' => '2e6e4031-c430-4d07-b8d6-a4e759b72568',
|
||||
'name' => 'Color',
|
||||
'product_category_variant_id' => '5a386e9f-6e7a-4ae7-9360-c8e529f78d93',
|
||||
'product_id' => 'cfc98a9a-29b2-44c8-b587-8156adc05317',
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'id' => '2e6e4031-c430-4d07-b8d6-a4e759b72569',
|
||||
'name' => 'Color',
|
||||
'product_category_variant_id' => '5a386e9f-6e7a-4ae7-9360-c8e529f78d93',
|
||||
'product_id' => 'cfc98a9a-29b2-44c8-b587-8156adc05318',
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'id' => '2e6e4031-c430-4d07-b8d6-a4e759b72561',
|
||||
'name' => 'AWG',
|
||||
'product_category_variant_id' => '5a386e9f-6e7a-4ae7-9360-c8e529f78d94',
|
||||
'product_id' => 'cfc98a9a-29b2-44c8-b587-8156adc05317',
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'id' => '2e6e4031-c430-4d07-b8d6-a4e759b72562',
|
||||
'name' => 'AWG',
|
||||
'product_category_variant_id' => '5a386e9f-6e7a-4ae7-9360-c8e529f78d94',
|
||||
'product_id' => 'cfc98a9a-29b2-44c8-b587-8156adc05318',
|
||||
'enabled' => 1,
|
||||
]
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user