-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathUsersLanguageFixture.php
More file actions
45 lines (41 loc) · 932 Bytes
/
UsersLanguageFixture.php
File metadata and controls
45 lines (41 loc) · 932 Bytes
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
<?php
/**
* UsersLanguageFixture
*
* @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
*/
/**
* UsersLanguageFixture
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Users\Model
*/
class UsersLanguageFixture extends CakeTestFixture {
/**
* Records
*
* @var array
*/
public $records = array(
array(
'id' => '1',
'user_id' => '1',
'language_id' => '2',
'name' => 'Lorem ipsum dolor sit amet',
),
);
/**
* Initialize the fixture.
*
* @return void
*/
public function init() {
require_once App::pluginPath('Users') . 'Config' . DS . 'Schema' . DS . 'schema.php';
$this->fields = (new UsersSchema())->tables['users_languages'];
parent::init();
}
}