Skip to content

Commit

Permalink
fix tests for php 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Jul 4, 2016
1 parent 37eb490 commit dfac119
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ protected function mockApplication($config = [], $appClass = '\yii\console\Appli
'id' => 'testapp',
'basePath' => __DIR__,
'vendorPath' => $this->getVendorPath(),
'components' => [
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@app/messages', // if advanced application, set @frontend/messages
'sourceLanguage' => 'en'
],
],
],
]
], $config));
}

Expand Down

0 comments on commit dfac119

Please sign in to comment.