-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTopicUserStatusFixture.php
More file actions
48 lines (44 loc) · 1.02 KB
/
TopicUserStatusFixture.php
File metadata and controls
48 lines (44 loc) · 1.02 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
<?php
/**
* TopicUserStatusFixture
*
* @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
*/
/**
* TopicUserStatusFixture
*
* @author Shohei Nakajima <nakajimashouhei@gmail.com>
* @package NetCommons\Topics\Test\Fixture
*/
class TopicUserStatusFixture extends CakeTestFixture {
/**
* Records
*
* @var array
*/
public $records = array(
array(
'id' => '1',
'topic_id' => '1',
'user_id' => '1',
'created_user' => '1',
'created' => '2016-05-02 06:25:42',
'modified_user' => '1',
'modified' => '2016-05-02 06:25:42'
),
);
/**
* Initialize the fixture.
*
* @return void
*/
public function init() {
require_once App::pluginPath('Topics') . 'Config' . DS . 'Schema' . DS . 'schema.php';
$this->fields = (new TopicsSchema())->tables[Inflector::tableize($this->name)];
parent::init();
}
}