test additions variants table

This commit is contained in:
2025-06-29 22:25:38 -07:00
parent 5bb1110e7f
commit 5cba7de890
9 changed files with 414 additions and 23 deletions

View File

@@ -0,0 +1,40 @@
<?php
declare(strict_types=1);
namespace CakeProducts\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* ProductCategoryVariantsFixture
*/
class ProductCategoryVariantsFixture extends TestFixture
{
/**
* Init method
*
* @return void
*/
public function init(): void
{
$this->records = [
[
'id' => '5a386e9f-6e7a-4ae7-9360-c8e529f78d93',
'name' => 'Color',
'product_category_id' => '6d223283-361b-4f9f-a7f1-c97aa0ca4c23',
'product_id' => null,
'variant_type_id' => 1,
'enabled' => 1,
],
[
'id' => '5a386e9f-6e7a-4ae7-9360-c8e529f78d94',
'name' => 'Color',
'product_category_id' => '6d223283-361b-4f9f-a7f1-c97aa0ca4c23',
'product_id' => 'cfc98a9a-29b2-44c8-b587-8156adc05317',
'variant_type_id' => 1,
'enabled' => 1,
],
];
parent::init();
}
}