| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 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 |