Repository navigation
Expand file tree
/
Copy pathQueueProcessesFixture.php
More file actions
55 lines (49 loc) · 1.95 KB
/
Copy pathQueueProcessesFixture.php
File metadata and controls
55 lines (49 loc) · 1.95 KB
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
54
55
<?php
namespace Queue\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* QueueProcessesFixture
*/
class QueueProcessesFixture extends TestFixture {
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null],
'pid' => ['type' => 'string', 'length' => 40, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'created' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'modified' => ['type' => 'datetime', 'length' => null, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null],
'terminate' => ['type' => 'boolean', 'length' => null, 'null' => false, 'default' => '0', 'comment' => '', 'precision' => null],
'server' => ['type' => 'string', 'length' => 90, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'workerkey' => ['type' => 'string', 'length' => 45, 'null' => false, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null],
'_constraints' => [
'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []],
'workerkey' => ['type' => 'unique', 'columns' => ['workerkey'], 'length' => []],
'pid' => ['type' => 'unique', 'columns' => ['pid', 'server'], 'length' => []],
],
'_options' => [
'engine' => 'InnoDB',
],
];
// @codingStandardsIgnoreEnd
/**
* Init method
*
* @return void
*/
public function init(): void {
$this->records = [
[
'pid' => '0',
'created' => '2019-01-04 17:27:40',
'modified' => '2019-01-04 17:27:40',
'terminate' => 1,
'workerkey' => 'key',
],
];
parent::init();
}
}