-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRole4userFixture.php
More file actions
77 lines (71 loc) · 2.04 KB
/
Role4userFixture.php
File metadata and controls
77 lines (71 loc) · 2.04 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
<?php
/**
* UserRoleFixture
*
* @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('RoleFixture', 'Roles.Test/Fixture');
/**
* UserRoleFixture
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Users\Test\Fixture
*/
class Role4userFixture extends RoleFixture {
/**
* Model name
*
* @var string
*/
public $name = 'Role';
/**
* Full Table Name
*
* @var string
*/
public $table = 'roles';
/**
* Records
*
* @var array
*/
public $records = array(
//会員の権限
array(
'language_id' => '2', 'key' => 'system_administrator', 'type' => '1',
'name' => 'System administrator', 'description' => 'System administrator description', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'administrator', 'type' => '1',
'name' => 'Site administrator', 'description' => 'Site administrator description', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'common_user', 'type' => '1',
'name' => 'Common user', 'description' => 'Common user description', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'test_user', 'type' => '1',
'name' => 'Test user', 'description' => 'Test user description', 'is_system' => 0,
),
//ルーム内の役割
array(
'language_id' => '2', 'key' => 'room_administrator', 'type' => '2', 'name' => 'Room Manager', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'chief_editor', 'type' => '2', 'name' => 'Chief editor', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'editor', 'type' => '2', 'name' => 'Editor', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'general_user', 'type' => '2', 'name' => 'General user', 'is_system' => 1,
),
array(
'language_id' => '2', 'key' => 'visitor', 'type' => '2', 'name' => 'Visitor', 'is_system' => 1,
)
);
}