-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathExposedUsersFixture.php
53 lines (48 loc) · 1.6 KB
/
ExposedUsersFixture.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
declare(strict_types = 1);
namespace Sandbox\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* ExposedUsersFixture
*/
class ExposedUsersFixture extends TestFixture {
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
'uuid' => ['type' => 'binaryuuid', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'name' => ['type' => 'string', 'length' => 100, 'null' => false, 'default' => null],
'created' => ['type' => 'datetime', 'length' => null, 'precision' => null, 'null' => false, 'default' => null, 'comment' => ''],
'modified' => ['type' => 'datetime', 'length' => null, 'precision' => null, 'null' => false, 'default' => null, 'comment' => ''],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
'uuid' => ['type' => 'unique', 'columns' => ['uuid'], 'length' => []],
],
'_options' => [
'engine' => 'InnoDB',
'collation' => 'utf8_unicode_ci'
],
];
// @codingStandardsIgnoreEnd
/**
* Init method
*
* @return void
*/
public function init(): void {
$this->records = [
[
'id' => 1,
'uuid' => 'eb25610d-7bfa-4e34-812c-ad72b100fb26',
'name' => 'Foo Bar',
'created' => '2020-02-24 08:21:27',
'modified' => '2020-02-24 08:21:27',
],
];
parent::init();
}
}