-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPrefecturesPreferenceFixture.php
31 lines (27 loc) · 1.1 KB
/
PrefecturesPreferenceFixture.php
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
<?php
namespace app\tests\fixtures;
use yii\test\ActiveFixture;
class PrefecturesPreferenceFixture extends ActiveFixture
{
public $tableName = '{{%prefectures_preference}}';
public $depends = [
'app\tests\fixtures\PrefectureFixture',
'app\tests\fixtures\ApplicantFixture',
];
protected function getData()
{
return [
['prefect_id' => 1, 'applicant_id' => 1, 'order' => 1],
['prefect_id' => 2, 'applicant_id' => 1, 'order' => 2],
['prefect_id' => 3, 'applicant_id' => 1, 'order' => 3],
['prefect_id' => 4, 'applicant_id' => 1, 'order' => 4],
['prefect_id' => 1, 'applicant_id' => 2, 'order' => 1],
['prefect_id' => 2, 'applicant_id' => 2, 'order' => 2],
['prefect_id' => 3, 'applicant_id' => 2, 'order' => 3],
['prefect_id' => 4, 'applicant_id' => 2, 'order' => 4],
['prefect_id' => 3, 'applicant_id' => 3, 'order' => 1],
['prefect_id' => 4, 'applicant_id' => 3, 'order' => 2],
['prefect_id' => 1, 'applicant_id' => 4, 'order' => 1],
];
}
}