Skip to content

Commit dfac119

Browse files
author
Igor Chepurnoy
committed
fix tests for php 7
1 parent 37eb490 commit dfac119

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/TestCase.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ protected function mockApplication($config = [], $appClass = '\yii\console\Appli
3333
'id' => 'testapp',
3434
'basePath' => __DIR__,
3535
'vendorPath' => $this->getVendorPath(),
36+
'components' => [
37+
'i18n' => [
38+
'translations' => [
39+
'*' => [
40+
'class' => 'yii\i18n\PhpMessageSource',
41+
'basePath' => '@app/messages', // if advanced application, set @frontend/messages
42+
'sourceLanguage' => 'en'
43+
],
44+
],
45+
],
46+
]
3647
], $config));
3748
}
3849

0 commit comments

Comments
 (0)