product photos first commit - only upload base photo
This commit is contained in:
37
tests/Fixture/ProductPhotosFixture.php
Normal file
37
tests/Fixture/ProductPhotosFixture.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CakeProducts\Test\Fixture;
|
||||
|
||||
use Cake\TestSuite\Fixture\TestFixture;
|
||||
|
||||
/**
|
||||
* ProductPhotosFixture
|
||||
*/
|
||||
class ProductPhotosFixture extends TestFixture
|
||||
{
|
||||
/**
|
||||
* Init method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function init(): void
|
||||
{
|
||||
$this->records = [
|
||||
[
|
||||
'id' => '2c386086-f4c5-4093-bea5-ee9c29479f58',
|
||||
'product_id' => 'cfc98a9a-29b2-44c8-b587-8156adc05317',
|
||||
'product_sku_id' => null,
|
||||
'photo_dir' => '/products/cfc98a9a-29b2-44c8-b587-8156adc05317/',
|
||||
'photo_filename' => '2c386086-f4c5-4093-bea5-ee9c29479f58.jpg',
|
||||
'primary_photo' => 1,
|
||||
'photo_position' => 100,
|
||||
'enabled' => 1,
|
||||
'created' => '2025-08-10 04:32:10',
|
||||
'modified' => '2025-08-10 04:32:10',
|
||||
'deleted' => null,
|
||||
],
|
||||
];
|
||||
parent::init();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user