first commit splitting onto its own repo
This commit is contained in:
35
tests/Fixture/CartItemsFixture.php
Normal file
35
tests/Fixture/CartItemsFixture.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CakeCarts\Test\Fixture;
|
||||
|
||||
use Cake\TestSuite\Fixture\TestFixture;
|
||||
|
||||
/**
|
||||
* CartItemsFixture
|
||||
*/
|
||||
class CartItemsFixture extends TestFixture
|
||||
{
|
||||
/**
|
||||
* Init method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function init(): void
|
||||
{
|
||||
$this->records = [
|
||||
[
|
||||
'id' => '79f66e8d-8d8d-4095-adc4-fd15234a4397',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '21794607-f68e-424f-91ba-3230e2f92e2b',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user