-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTestAttachmentBehaviorSaveModelFixture.php
More file actions
76 lines (73 loc) · 3.42 KB
/
TestAttachmentBehaviorSaveModelFixture.php
File metadata and controls
76 lines (73 loc) · 3.42 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
67
68
69
70
71
72
73
74
75
76
<?php
/**
* AttachmentBehavior::save()テスト用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
*/
/**
* AttachmentBehavior::save()テスト用Fixture
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Files\Test\Fixture
*/
class TestAttachmentBehaviorSaveModelFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary', 'comment' => ''),
'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'),
'status' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 4, 'unsigned' => false, 'comment' => ''),
'is_active' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'comment' => ''),
'is_latest' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'comment' => ''),
'content' => array('type' => 'text', 'null' => true, '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',
'language_id' => '2',
'key' => 'not_publish_key',
'status' => '3',
'is_active' => false,
'is_latest' => true,
'content' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
'created_user' => '1',
'created' => '2016-02-18 05:28:21',
'modified_user' => '1',
'modified' => '2016-02-18 05:28:21'
),
array(
'id' => '2',
'language_id' => '2',
'key' => 'publish_key',
'status' => '1',
'is_active' => true,
'is_latest' => true,
'content' => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam, vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
'created_user' => '1',
'created' => '2016-02-18 05:28:21',
'modified_user' => '1',
'modified' => '2016-02-18 05:28:21'
),
);
}