-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFakeModelFixture.php
More file actions
65 lines (61 loc) · 1.64 KB
/
FakeModelFixture.php
File metadata and controls
65 lines (61 loc) · 1.64 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
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Fake Model Fixture
*
* @author Ryuji AMANO <ryuji@ryus.co.jp>
* @author Noriko Arai <arai@nii.ac.jp>
* @author Mitsuru Mutaguchi <mutaguchi@opensource-workshop.jp>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
/**
* Summary for Fake Model Fixture
*/
class FakeModelFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary', 'comment' => 'ID'),
'key' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => 'KEY | | | ', 'charset' => 'utf8'),
'block_id' => array('type' => 'integer'),
'is_active' => array('type' => 'integer'),
'is_latest' => array('type' => 'integer'),
'name' => array('type' => 'string', 'null' => false, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
);
/**
* Records
*
* @var array
*/
public $records = array(
array(
'id' => 1,
'key' => 'content_1',
'block_id' => 1,
'is_active' => 1,
'is_latest' => 0,
'name' => 'Lorem ipsum dolor sit amet',
),
array(
'id' => 2,
'key' => 'content_2',
'block_id' => 1,
'is_active' => 0,
'is_latest' => 1,
'name' => 'Lorem ipsum dolor sit amet',
),
array(
'id' => 3,
'key' => 'content_3',
'block_id' => 1,
'is_active' => 0,
'is_latest' => 1,
'name' => 'Lorem ipsum dolor sit amet',
),
);
}