From 97123b387a8bb248666c35e4fbee40c4e354011c Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 17 Dec 2019 18:00:46 +0530 Subject: [PATCH] Fix tests --- tests/TestCase/Command/I18nExtractCommandTest.php | 4 ++++ tests/TestCase/Command/I18nInitCommandTest.php | 4 ++++ tests/test_app/config/bootstrap.php | 1 + 3 files changed, 9 insertions(+) create mode 100644 tests/test_app/config/bootstrap.php 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 @@ +