phpcbf and added .gitea workflows
This commit is contained in:
@@ -8,61 +8,61 @@ use Cake\TestSuite\Fixture\TestFixture;
|
||||
/**
|
||||
* CartItemsFixture
|
||||
*/
|
||||
class CartItemsFixture extends TestFixture
|
||||
{
|
||||
/**
|
||||
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' => '74d1aa54-92a2-4039-bc10-61e1190c51ea',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
[
|
||||
'id' => '74d1aa54-92a2-4039-ba10-61e1190c51eb',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '74d1aa54-92a2-4039-bc10-61e1190c51eb',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
[
|
||||
'id' => '74d1aa54-92a2-4039-bc10-61e4190c51ec',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '74d1aa54-92a2-4039-bc10-61e1190c51ec',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
[
|
||||
'id' => '79f66e8d-8d8d-4095-adc4-fd15234a4394',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '74d1aa54-92a2-4039-bc10-61e1190c51ed',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
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' => '74d1aa54-92a2-4039-bc10-61e1190c51ea',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
[
|
||||
'id' => '74d1aa54-92a2-4039-ba10-61e1190c51eb',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '74d1aa54-92a2-4039-bc10-61e1190c51eb',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
[
|
||||
'id' => '74d1aa54-92a2-4039-bc10-61e4190c51ec',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '74d1aa54-92a2-4039-bc10-61e1190c51ec',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
[
|
||||
'id' => '79f66e8d-8d8d-4095-adc4-fd15234a4394',
|
||||
'foreign_key' => null,
|
||||
'foreign_key_uuid' => 'e5efe749-d6b6-4f72-83c9-32b19936c70c',
|
||||
'model' => 'ProductSkus',
|
||||
'cart_id' => '74d1aa54-92a2-4039-bc10-61e1190c51ed',
|
||||
'position' => 1,
|
||||
'qty' => 1,
|
||||
'price' => 1.5,
|
||||
'subtotal' => 1.5,
|
||||
],
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,73 +9,73 @@ use CakeCarts\Model\Enum\CartTypeId;
|
||||
/**
|
||||
* CartsFixture
|
||||
*/
|
||||
class CartsFixture extends TestFixture
|
||||
{
|
||||
/**
|
||||
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' => 'session_1',
|
||||
'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' => 'session_1',
|
||||
'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();
|
||||
}
|
||||
public function init(): void {
|
||||
$this->records = [
|
||||
// normal cart - open
|
||||
[
|
||||
'id' => '74d1aa54-92a2-4039-bc10-61e1190c51ea',
|
||||
'cart_type_id' => CartTypeId::Cart->value,
|
||||
'session_id' => 'session_1',
|
||||
'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' => 'session_1',
|
||||
'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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user