diff --git a/tests/TestCase/Command/I18nExtractCommandTest.php b/tests/TestCase/Command/I18nExtractCommandTest.php index f59743e..99e61e5 100644 --- a/tests/TestCase/Command/I18nExtractCommandTest.php +++ b/tests/TestCase/Command/I18nExtractCommandTest.php @@ -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']); diff --git a/tests/TestCase/Command/I18nInitCommandTest.php b/tests/TestCase/Command/I18nInitCommandTest.php index 666aa0d..4b5b22c 100644 --- a/tests/TestCase/Command/I18nInitCommandTest.php +++ b/tests/TestCase/Command/I18nInitCommandTest.php @@ -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'); } diff --git a/tests/test_app/config/bootstrap.php b/tests/test_app/config/bootstrap.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/tests/test_app/config/bootstrap.php @@ -0,0 +1 @@ +