Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
32 | protected function mockApplication($config = [], $appClass = '\yii\console\Application') |
||
33 | { |
||
34 | new $appClass(ArrayHelper::merge([ |
||
35 | 'id' => 'testapp', |
||
36 | 'basePath' => __DIR__, |
||
37 | 'vendorPath' => $this->getVendorPath(), |
||
38 | 'components' => [ |
||
39 | 'i18n' => [ |
||
40 | 'translations' => [ |
||
41 | '*' => [ |
||
42 | 'class' => 'yii\i18n\PhpMessageSource', |
||
43 | 'basePath' => '@app/messages', // if advanced application, set @frontend/messages |
||
44 | 'sourceLanguage' => 'en', |
||
45 | ], |
||
46 | ], |
||
47 | ], |
||
48 | ], |
||
49 | ], $config)); |
||
50 | } |
||
51 | |||
68 |