Files
cake-carts/tests/Fixture/CartsFixture.php
Brandon Shipley 2be8341cf9
Some checks failed
CI / testsuite (mysql, 8.2, ) (push) Successful in 4m18s
CI / testsuite (pgsql, 8.4, ) (push) Successful in 7m8s
CI / testsuite (sqlite, 8.2, ) (push) Successful in 3m21s
CI / testsuite (pgsql, 8.2, ) (push) Successful in 13m24s
CI / testsuite (sqlite, 8.2, prefer-lowest) (push) Failing after 3m45s
CI / testsuite (mysql, 8.4, ) (push) Successful in 19m22s
CI / Coding Standard & Static Analysis (push) Failing after 2m57s
CI / testsuite (sqlite, 8.4, ) (push) Successful in 15m45s
test fixes shopping cart component
2026-01-23 22:40:45 -08:00

82 lines
2.1 KiB
PHP

<?php
declare(strict_types=1);
namespace CakeCarts\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
use CakeCarts\Model\Enum\CartTypeId;
/**
* CartsFixture
*/
class CartsFixture extends TestFixture {
/**
* Init method
*
* @return void
*/
public function init(): void {
$this->records = [
// normal cart - open
[
'id' => '74d1aa54-92a2-4039-bc10-61e1190c51ea',
'cart_type_id' => CartTypeId::Cart->value,
'session_id' => 'cli',
'user_id' => null,
'user_id_uuid' => '5a34a6ae-7d3f-4dcf-bac7-57335b51e697',
'created' => '2025-10-08 09:55:15',
'modified' => '2025-10-08 09:55:15',
'deleted' => null,
'removed' => null,
'removed_reason_id' => null,
'num_items' => 1,
],
// normal cart - deleted
[
'id' => '74d1aa54-92a2-4039-bc10-61e1190c51eb',
'cart_type_id' => CartTypeId::Cart->value,
'session_id' => 'cli',
'user_id' => null,
'user_id_uuid' => '5a34a6ae-7d3f-4dcf-bac7-57335b51e697',
'created' => '2025-10-08 09:55:15',
'modified' => '2025-10-08 09:55:15',
'deleted' => '2025-10-08 09:55:15',
'removed' => null,
'removed_reason_id' => null,
'num_items' => 1,
],
// wishlist cart - open
[
'id' => '74d1aa54-92a2-4039-bc10-61e1190c51ec',
'cart_type_id' => CartTypeId::Wishlist->value,
'session_id' => 'session_2',
'user_id' => null,
'user_id_uuid' => '5a34a6ae-7d3f-4dcf-bac7-57335b51e697',
'created' => '2025-10-08 09:55:15',
'modified' => '2025-10-08 09:55:15',
'deleted' => null,
'removed' => null,
'removed_reason_id' => null,
'num_items' => 1,
],
// wishlist cart - deleted
[
'id' => '74d1aa54-92a2-4039-bc10-61e1190c51ed',
'cart_type_id' => CartTypeId::Wishlist->value,
'session_id' => 'session_2',
'user_id' => null,
'user_id_uuid' => '5a34a6ae-7d3f-4dcf-bac7-57335b51e697',
'created' => '2025-10-08 09:55:15',
'modified' => '2025-10-08 09:55:15',
'deleted' => '2025-10-08 09:55:15',
'removed' => null,
'removed_reason_id' => null,
'num_items' => 1,
],
];
parent::init();
}
}