-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoom4searchesFixture.php
More file actions
58 lines (52 loc) · 1.14 KB
/
Room4searchesFixture.php
File metadata and controls
58 lines (52 loc) · 1.14 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
<?php
/**
* Searches用のRoomFixture
*
* @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
*/
App::uses('Room4topicsFixture', 'Topics.Test/Fixture');
/**
* Searches用のRoomFixture
*
* @author Mitsuru Mutaguchi <mutaguchi@opensource-workshop.jp>
* @package NetCommons\Searches\Test\Fixture
*/
class Room4searchesFixture extends Room4topicsFixture {
/**
* Model name
*
* @var string
*/
public $name = 'Room';
/**
* Full Table Name
*
* @var string
*/
public $table = 'rooms';
/**
* Initialize the fixture.
*
* @return void
*/
public function init() {
// 'space_id' => '1' のルームをテストデータに追加
$this->records[] = array(
'space_id' => '1',
'page_id_top' => '0',
'parent_id' => '4',
'lft' => '25',
'rght' => '26',
'active' => '1',
'default_role_key' => 'general_user',
'need_approval' => '0',
'default_participation' => '0',
'page_layout_permitted' => null,
'theme' => null,
);
parent::init();
}
}