-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTestBlockBehaviorValidatesModelFixture.php
More file actions
66 lines (62 loc) · 2.35 KB
/
TestBlockBehaviorValidatesModelFixture.php
File metadata and controls
66 lines (62 loc) · 2.35 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
66
<?php
/**
* BlockBehavior::validates()テスト用Fixture
*
* @author Noriko Arai <arai@nii.ac.jp>
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
/**
* BlockBehavior::validates()テスト用Fixture
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Blocks\Test\Fixture
*/
class TestBlockBehaviorValidatesModelFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary', 'comment' => ''),
'block_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false),
'block_key' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
'language_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 6, 'unsigned' => false),
'key' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'),
'name' => array('type' => 'string', 'null' => false, 'default' => null, 'collate' => 'utf8_general_ci', 'comment' => '', 'charset' => 'utf8'),
'created_user' => array('type' => 'integer', 'null' => true, 'default' => '0', 'unsigned' => false, 'comment' => ''),
'created' => array('type' => 'datetime', 'null' => true, 'default' => null, 'comment' => ''),
'modified_user' => array('type' => 'integer', 'null' => true, 'default' => '0', 'unsigned' => false, 'comment' => ''),
'modified' => array('type' => 'datetime', 'null' => true, 'default' => null, 'comment' => ''),
'indexes' => array(
'PRIMARY' => array('column' => 'id', 'unique' => 1),
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB'),
);
/**
* Records
*
* @var array
*/
public $records = array(
array(
'id' => '1',
'block_id' => '2',
'block_key' => 'block_1',
'language_id' => '1',
'key' => 'key_1',
'name' => 'Test Name 1 en',
),
array(
'id' => '2',
'block_id' => '2',
'block_key' => 'block_1',
'language_id' => '2',
'key' => 'key_1',
'name' => 'Test Name 1 ja',
),
);
}