product variants table split off from category variants table, variant values table updated to reflect

This commit is contained in:
2025-10-03 02:16:24 -07:00
parent d49a8784e6
commit 49912abd3a
21 changed files with 477 additions and 46 deletions

View 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();
}
}