-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTopicReadable4topicsFixture.php
More file actions
248 lines (237 loc) · 15.2 KB
/
TopicReadable4topicsFixture.php
File metadata and controls
248 lines (237 loc) · 15.2 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<?php
/**
* TopicReadableFixture
*
* @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
*/
App::uses('TopicReadableFixture', 'Topics.Test/Fixture');
/**
* TopicReadableFixture
*
* ### テストデータ
* #### 掲示板
* - content_key_1[topic_id=1,2] 管理者が投稿(公開中)
* - content_key_2[topic_id=3] 一般1が投稿(未承認)
* - content_key_3[topic_id=4] 一般1が投稿(承認待ち⇒差し戻し)
* - content_key_4[topic_id=5,6] 一般1が投稿(承認待ち⇒公開)
* - content_key_5[topic_id=7,8] 一般1が投稿(承認待ち⇒公開⇒承認待ち(編集者が修正))
* #### ブログ(公開日のチェック)
* - content_key_9 管理者が投稿(公開中、現在)
* - content_key_10 管理者が投稿(公開中、未来)
* - content_key_11 管理者が投稿(公開中、過去1日前)
* - content_key_12 管理者が投稿(公開中、過去3日前)
* - content_key_13 管理者が投稿(公開中、過去7日前)
* - content_key_14 管理者が投稿(公開中、過去14日前)
* - content_key_15 管理者が投稿(公開中、過去30日前)
* - content_key_16 管理者が投稿(公開中、過去30日以上前)
* #### お知らせ(ブロックの公開状態、公開日のチェック)
* - content_key_17[block_id=3] ブロック公開
* - content_key_18[block_id=4] ブロック非公開
* - content_key_19[block_id=5] ブロック期限付き+期限内
* - content_key_20[block_id=6] ブロック期限付き+期限内(startのみ指定)
* - content_key_21[block_id=7] ブロック期限付き+期限内(endのみ指定)
* - content_key_22[block_id=8] ブロック期限付き+期限前
* - content_key_23[block_id=9] ブロック期限付き+期限切れ
* - content_key_24[block_id=10,room_id=6] 管理者プライベート
* - content_key_25[block_id=11,room_id=9] 一般1プライベート
* - content_key_26[block_id=12,room_id=12] ルーム2
* #### FAQ(カテゴリ)
* - content_key_27 カテゴリなし
* - content_key_28 カテゴリ1
* - content_key_29 カテゴリ1
* - content_key_30 カテゴリ2
* - content_key_31 存在しないカテゴリ
* #### 回覧板(イレギュラープラグイン)
* - content_key_32 ルームに参加している全会員(パブリック)
* - content_key_33 ルームに参加している全会員(ルーム2)
* - content_key_34 個別に選択(パブリック)
* - content_key_35 個別に選択(ルーム2, 参加していないユーザを含む)
* - content_key_36 回覧期間、期間内、回答期限なし
* - content_key_37 回覧期間、期間内、回答期限あり(未来)
* - content_key_54 回覧期間、期間内、回答期限あり(過去)
* - content_key_38 回覧期間、期間内(start、end指定なし)、回答期限なし
* - content_key_39 回覧期間、期間内(start、end指定なし)、回答期限あり(未来)
* - content_key_55 回覧期間、期間内(start、end指定なし)、回答期限あり(過去)
* - content_key_40 回覧期間、期間内(startのみ指定)、回答期限なし
* - content_key_41 回覧期間、期間内(startのみ指定)、回答期限あり(未来)
* - content_key_56 回覧期間、期間内(startのみ指定)、回答期限あり(過去)
* - content_key_42 回覧期間、期間内(endのみ指定)、回答期限なし
* - content_key_43 回覧期間、期間内(endのみ指定)、回答期限あり(未来)
* - content_key_57 回覧期間、期間内(endのみ指定)、回答期限あり(過去)
* - content_key_44 回覧期間、期間前、回答期限なし
* - content_key_45 回覧期間、期間前、回答期限あり(期間内)
* - content_key_58 回覧期間、期間前、回答期限あり(期間外)
* - content_key_46 回覧期間、期間終了(endのみ指定)、回答期限なし
* - content_key_47 回覧期間、期間終了(endのみ指定)、回答期限あり(範囲内)
* - content_key_59 回覧期間、期間終了(endのみ指定)、回答期限あり(範囲外)
* - content_key_48 回覧期間、期間終了(start,end指定)、回答期限なし
* - content_key_49 回覧期間、期間終了(start,end指定)、回答期限あり(範囲内)
* - content_key_60 回覧期間、期間終了(start,end指定)、回答期限あり(範囲外)
* #### カレンダー(イレギュラープラグイン)
* - content_key_70 プライベートの予定(共有なし)
* - content_key_71 プライベートの予定(共有あり)
* - content_key_72 パブリックの予定
* - content_key_73 会員全体の予定
* - content_key_74 ルームの予定
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Topics\Test\Fixture
*/
class TopicReadable4topicsFixture extends TopicReadableFixture {
/**
* Model name
*
* @var string
*/
public $name = 'TopicReadable';
/**
* Full Table Name
*
* @var string
*/
public $table = 'topic_readables';
/**
* Records
*
* @var array
*/
public $records = array(
//#### 掲示板
// - content_key_1 管理者が投稿(公開中)
array('id' => '1', 'topic_id' => '1', 'user_id' => '0'), //is_latest
array('id' => '2', 'topic_id' => '2', 'user_id' => '0'), //is_active
// - content_key_2 一般1が投稿(未承認)
array('id' => '3', 'topic_id' => '3', 'user_id' => '0'), //is_latest
// - content_key_3 一般1が投稿(承認待ち⇒差し戻し)
array('id' => '4', 'topic_id' => '4', 'user_id' => '0'), //is_latest
// - content_key_4 一般1が投稿(承認待ち⇒公開)
array('id' => '5', 'topic_id' => '5', 'user_id' => '0'), //is_latest
array('id' => '6', 'topic_id' => '6', 'user_id' => '0'), //is_active
// - content_key_5 一般1が投稿(承認待ち⇒公開⇒承認待ち(編集者が修正))
array('id' => '7', 'topic_id' => '7', 'user_id' => '0'), //is_latest
array('id' => '8', 'topic_id' => '8', 'user_id' => '0'), //is_active
//#### ブログ(公開日のチェック)
// - content_key_9 管理者が投稿(公開中、現在)
array('id' => '9', 'topic_id' => '9', 'user_id' => '0'), //is_latest,is_active
// - content_key_10 管理者が投稿(公開中、未来)
array('id' => '10', 'topic_id' => '10', 'user_id' => '0'), //is_latest,is_active
// - content_key_11 管理者が投稿(公開中、過去1日前)
array('id' => '11', 'topic_id' => '11', 'user_id' => '0'), //is_latest,is_active
// - content_key_12 管理者が投稿(公開中、過去3日前)
array('id' => '12', 'topic_id' => '12', 'user_id' => '0'), //is_latest,is_active
// - content_key_13 管理者が投稿(公開中、過去7日前)
array('id' => '13', 'topic_id' => '13', 'user_id' => '0'), //is_latest,is_active
// - content_key_14 管理者が投稿(公開中、過去14日前)
array('id' => '14', 'topic_id' => '14', 'user_id' => '0'), //is_latest,is_active
// - content_key_15 管理者が投稿(公開中、過去30日前)
array('id' => '15', 'topic_id' => '15', 'user_id' => '0'), //is_latest,is_active
// - content_key_16 管理者が投稿(公開中、過去30日以上前)
array('id' => '16', 'topic_id' => '16', 'user_id' => '0'), //is_latest,is_active
//#### お知らせ(ブロックの公開状態、公開日のチェック)
// - content_key_17[block_id=3] ブロック公開
array('id' => '17', 'topic_id' => '17', 'user_id' => '0'), //is_latest,is_active
// - content_key_18[block_id=4] ブロック非公開
array('id' => '18', 'topic_id' => '18', 'user_id' => '0'), //is_latest,is_active
// - content_key_19[block_id=5] ブロック期限付き+期限内
array('id' => '19', 'topic_id' => '19', 'user_id' => '0'), //is_latest,is_active
// - content_key_20[block_id=6] ブロック期限付き+期限内(startのみ指定)
array('id' => '20', 'topic_id' => '20', 'user_id' => '0'), //is_latest,is_active
// - content_key_21[block_id=7] ブロック期限付き+期限内(endのみ指定)
array('id' => '21', 'topic_id' => '21', 'user_id' => '0'), //is_latest,is_active
// - content_key_22[block_id=8] ブロック期限付き+期限前
array('id' => '22', 'topic_id' => '22', 'user_id' => '0'), //is_latest,is_active
// - content_key_23[block_id=9] ブロック期限付き+期限切れ
array('id' => '23', 'topic_id' => '23', 'user_id' => '0'), //is_latest,is_active
// - content_key_24[block_id=10,room_id=6] 管理者プライベート
array('id' => '24', 'topic_id' => '24', 'user_id' => '0'), //is_latest,is_active
// - content_key_25[block_id=11,room_id=9] 一般1プライベート
array('id' => '25', 'topic_id' => '25', 'user_id' => '0'), //is_latest,is_active
// - content_key_26[block_id=12,room_id=12] ルーム2
array('id' => '26', 'topic_id' => '26', 'user_id' => '0'), //is_latest,is_active
//#### FAQ(カテゴリ)
// - content_key_27 カテゴリなし
array('id' => '27', 'topic_id' => '27', 'user_id' => '0'), //is_latest,is_active
// - content_key_28 カテゴリ1
array('id' => '28', 'topic_id' => '28', 'user_id' => '0'), //is_latest,is_active
// - content_key_29 カテゴリ1
array('id' => '29', 'topic_id' => '29', 'user_id' => '0'), //is_latest,is_active
// - content_key_30 カテゴリ2
array('id' => '30', 'topic_id' => '30', 'user_id' => '0'), //is_latest,is_active
// - content_key_31 存在しないカテゴリ
array('id' => '31', 'topic_id' => '31', 'user_id' => '0'), //is_latest,is_active
//#### 回覧板(イレギュラープラグイン)
// - content_key_32[topic_id=32,50] ルームに参加している全会員(パブリック)
array('id' => '32', 'topic_id' => '32', 'user_id' => '0'), //is_latest,is_active
array('id' => '55', 'topic_id' => '50', 'user_id' => '0'), //is_latest,is_active
// - content_key_33[topic_id=33,51] ルームに参加している全会員(ルーム2)
array('id' => '33', 'topic_id' => '33', 'user_id' => '0'), //is_latest,is_active
array('id' => '56', 'topic_id' => '51', 'user_id' => '0'), //is_latest,is_active
// - content_key_34[topic_id=34,52] 個別に選択(パブリック)
array('id' => '34', 'topic_id' => '34', 'user_id' => '1'), //is_latest,is_active
array('id' => '50', 'topic_id' => '34', 'user_id' => '2'), //is_latest,is_active
array('id' => '51', 'topic_id' => '34', 'user_id' => '4'), //is_latest,is_active
// - content_key_35[topic_id=35,53] 個別に選択(ルーム2, 参加していないユーザを含む)
array('id' => '35', 'topic_id' => '35', 'user_id' => '1'), //is_latest,is_active
array('id' => '52', 'topic_id' => '35', 'user_id' => '2'), //is_latest,is_active
array('id' => '53', 'topic_id' => '53', 'user_id' => '4'), //is_latest,is_active
array('id' => '54', 'topic_id' => '35', 'user_id' => '6'), //is_latest,is_active
// - content_key_36 回覧期間、期間内、回答期限なし
array('id' => '36', 'topic_id' => '36', 'user_id' => '0'), //is_latest,is_active
// - content_key_37 回覧期間、期間内、回答期限あり(未来)
array('id' => '37', 'topic_id' => '37', 'user_id' => '0'), //is_latest,is_active
// - content_key_54 回覧期間、期間内、回答期限あり(過去)
array('id' => '57', 'topic_id' => '54', 'user_id' => '0'), //is_latest,is_active
// - content_key_38 回覧期間、期間内(start、end指定なし)、回答期限なし
array('id' => '38', 'topic_id' => '38', 'user_id' => '0'), //is_latest,is_active
// - content_key_39 回覧期間、期間内(start、end指定なし)、回答期限あり(未来)
array('id' => '39', 'topic_id' => '39', 'user_id' => '0'), //is_latest,is_active
// - content_key_55 回覧期間、期間内(start、end指定なし)、回答期限あり(過去)
array('id' => '58', 'topic_id' => '55', 'user_id' => '0'), //is_latest,is_active
// - content_key_40 回覧期間、期間内(startのみ指定)、回答期限なし
array('id' => '40', 'topic_id' => '40', 'user_id' => '0'), //is_latest,is_active
// - content_key_41 回覧期間、期間内(startのみ指定)、回答期限あり(未来)
array('id' => '41', 'topic_id' => '41', 'user_id' => '0'), //is_latest,is_active
// - content_key_56 回覧期間、期間内(startのみ指定)、回答期限あり(過去)
array('id' => '59', 'topic_id' => '56', 'user_id' => '0'), //is_latest,is_active
// - content_key_42 回覧期間、期間内(endのみ指定)、回答期限なし
array('id' => '42', 'topic_id' => '42', 'user_id' => '0'), //is_latest,is_active
// - content_key_43 回覧期間、期間内(endのみ指定)、回答期限あり(未来)
array('id' => '43', 'topic_id' => '43', 'user_id' => '0'), //is_latest,is_active
// - content_key_57 回覧期間、期間内(endのみ指定)、回答期限あり(過去)
array('id' => '60', 'topic_id' => '57', 'user_id' => '0'), //is_latest,is_active
// - content_key_44 回覧期間、期間前、回答期限なし
array('id' => '44', 'topic_id' => '44', 'user_id' => '0'), //is_latest,is_active
// - content_key_45 回覧期間、期間前、回答期限あり(期間内)
array('id' => '45', 'topic_id' => '45', 'user_id' => '0'), //is_latest,is_active
// - content_key_58 回覧期間、期間前、回答期限あり(期間外)
array('id' => '61', 'topic_id' => '58', 'user_id' => '0'), //is_latest,is_active
// - content_key_46 回覧期間、期間終了(endのみ指定)、回答期限なし
array('id' => '46', 'topic_id' => '46', 'user_id' => '0'), //is_latest,is_active
// - content_key_47 回覧期間、期間終了(endのみ指定)、回答期限あり(範囲内)
array('id' => '47', 'topic_id' => '47', 'user_id' => '0'), //is_latest,is_active
// - content_key_59 回覧期間、期間終了(endのみ指定)、回答期限あり(範囲外)
array('id' => '62', 'topic_id' => '59', 'user_id' => '0'), //is_latest,is_active
// - content_key_48 回覧期間、期間終了(start,end指定)、回答期限なし
array('id' => '48', 'topic_id' => '48', 'user_id' => '0'), //is_latest,is_active
// - content_key_49 回覧期間、期間終了(start,end指定)、回答期限あり(範囲内)
array('id' => '49', 'topic_id' => '49', 'user_id' => '0'), //is_latest,is_active
// - content_key_49[topic_id=60] 回覧期間、期間終了(start,end指定)、回答期限あり(範囲外)
array('id' => '63', 'topic_id' => '60', 'user_id' => '0'), //is_latest,is_active
//#### カレンダー(イレギュラープラグイン)
// - content_key_70 プライベートの予定(共有なし)
array('id' => '70', 'topic_id' => '70', 'user_id' => '0'), //is_latest,is_active
// - content_key_71 プライベートの予定(共有あり)
array('id' => '71', 'topic_id' => '71', 'user_id' => '0'), //is_latest,is_active
array('id' => '75', 'topic_id' => '71', 'user_id' => '4'), //is_latest,is_active
// - content_key_72 パブリックの予定
array('id' => '72', 'topic_id' => '72', 'user_id' => '0'), //is_latest,is_active
// - content_key_73 会員全体の予定
array('id' => '73', 'topic_id' => '73', 'user_id' => '0'), //is_latest,is_active
// - content_key_74 ルームの予定
array('id' => '74', 'topic_id' => '74', 'user_id' => '0'), //is_latest,is_active
);
}