Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 17, 2019
1 parent 2fb4745 commit 97123b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/TestCase/Command/I18nExtractCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public function setUp(): void

$this->useCommandRunner();
$this->setAppNamespace();
$this->configApplication(
'TestApp\Application',
[PLUGIN_TESTS . 'test_app' . DS . 'config']
);

$this->model = TableRegistry::getTableLocator()->get('I18nMessages');
$this->model->deleteAll(['1 = 1']);
Expand Down
4 changes: 4 additions & 0 deletions tests/TestCase/Command/I18nInitCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public function setUp(): void

$this->useCommandRunner();
$this->setAppNamespace();
$this->configApplication(
'TestApp\Application',
[PLUGIN_TESTS . 'test_app' . DS . 'config']
);

$this->model = TableRegistry::getTableLocator()->get('I18nMessages');
}
Expand Down
1 change: 1 addition & 0 deletions tests/test_app/config/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php

0 comments on commit 97123b3

Please sign in to comment.