42 lines
807 B
PHP
42 lines
807 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace CakeContactUs\Test\Fixture;
|
|
|
|
use Cake\I18n\FrozenTime;
|
|
use Cake\TestSuite\Fixture\TestFixture;
|
|
use Cake\Utility\Text;
|
|
|
|
/**
|
|
* ContactUsFormSubmissionsFixture
|
|
*/
|
|
class ContactUsFormSubmissionsFixture extends TestFixture {
|
|
|
|
public string $table = 'contact_us_form_submissions';
|
|
|
|
/**
|
|
* Init method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function init(): void {
|
|
$this->records = [
|
|
[
|
|
'id' => Text::uuid(),
|
|
'submitted_at' => new FrozenTime(),
|
|
'client_ip' => 'cli',
|
|
'first_name' => 'test',
|
|
'last_name' => 'test',
|
|
'email' => 'test@test.com',
|
|
'contact_subject' => 'subject',
|
|
'message' => 'what are your business hours?',
|
|
'confirm_email_sent' => true,
|
|
'backend_email_sent' => true,
|
|
],
|
|
];
|
|
|
|
parent::init();
|
|
}
|
|
|
|
}
|