-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPage4PageEditControllerFixture.php
More file actions
130 lines (124 loc) · 3.23 KB
/
Page4PageEditControllerFixture.php
File metadata and controls
130 lines (124 loc) · 3.23 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
/**
* Page4PageEditControllerFixture
*
* @copyright Copyright 2014, NetCommons Project
* @author Kohei Teraguchi <kteraguchi@commonsnet.org>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
*/
App::uses('PageFixture', 'Pages.Test/Fixture');
/**
* Page4PageEditControllerFixture
*
*/
class Page4PageEditControllerFixture extends PageFixture {
/**
* Model name
*
* @var string
*/
public $name = 'Page';
/**
* Full Table Name
*
* @var string
*/
public $table = 'pages';
/**
* Records
*
* @var array
*/
public $records = array(
//パブリックスペースのページ(使われることはない)
array(
'id' => '1', 'room_id' => '2', 'root_id' => null,
'parent_id' => null,
//'lft' => '1', 'rght' => '14',
'weight' => '1',
'sort_key' => '~00000001',
'child_count' => '6',
'permalink' => '', 'slug' => null,
),
//パブリックスペースのホーム
array(
'id' => '4', 'room_id' => '2', 'root_id' => '1',
'parent_id' => '1',
//'lft' => '2', 'rght' => '5',
'weight' => '1',
'sort_key' => '~00000001-00000001',
'child_count' => '1',
'permalink' => 'home', 'slug' => 'home',
),
//ホーム/test4
array(
'id' => '7', 'room_id' => '2', 'root_id' => '1',
'parent_id' => '4',
//'lft' => '3', 'rght' => '4',
'weight' => '1',
'sort_key' => '~00000001-00000001-00000001',
'child_count' => '0',
'permalink' => 'test4', 'slug' => 'test4',
),
//パブリックスペースのtest5
array(
'id' => '8', 'room_id' => '2', 'root_id' => '1',
'parent_id' => '1',
//'lft' => '6', 'rght' => '7',
'weight' => '2',
'sort_key' => '~00000001-00000002',
'child_count' => '0',
'permalink' => 'test5', 'slug' => 'test5',
),
//プライベートスペースのページ(使われることはない)
array(
'id' => '2', 'room_id' => '3', 'root_id' => null,
'parent_id' => null,
//'lft' => '15', 'rght' => '16',
'weight' => '2',
'sort_key' => '~00000002',
'child_count' => '0',
'permalink' => '', 'slug' => null,
),
//グループスペースのページ(使われることはない)
array(
'id' => '3', 'room_id' => '4', 'root_id' => null,
'parent_id' => null,
//'lft' => '17', 'rght' => '18',
'weight' => '3',
'sort_key' => '~00000003',
'child_count' => '0',
'permalink' => '', 'slug' => null,
),
//別ルーム(room_id=4)
array(
'id' => '5', 'room_id' => '5', 'root_id' => '1',
'parent_id' => '1',
//'lft' => '8', 'rght' => '11',
'weight' => '3',
'sort_key' => '~00000001-00000003',
'child_count' => '1',
'permalink' => 'test2', 'slug' => 'test2',
),
array(
'id' => '9', 'room_id' => '5', 'root_id' => '1',
'parent_id' => '5',
//'lft' => '9', 'rght' => '10',
'weight' => '1',
'sort_key' => '~00000001-00000003-00000001',
'child_count' => '0',
'permalink' => 'test2/home', 'slug' => 'home',
),
//別ルーム(room_id=5、ブロックなし)
array(
'id' => '6', 'room_id' => '6', 'root_id' => '1',
'parent_id' => '1',
//'lft' => '12', 'rght' => '13',
'weight' => '4',
'sort_key' => '~00000001-00000004',
'child_count' => '0',
'permalink' => 'test3', 'slug' => 'test3',
),
);
}