From 7f889af89847c50b5e4c46db1c46d342e28d5775 Mon Sep 17 00:00:00 2001 From: Yevgeny Tomenko Date: Tue, 17 Sep 2024 10:27:36 +0300 Subject: [PATCH] code cleanup --- tests/TestCase/Controller/ArticlesControllerTest.php | 1 - tests/bootstrap.php | 2 -- tests/test_app/App/Application.php | 2 -- tests/test_app/config/routes.php | 4 ---- 4 files changed, 9 deletions(-) diff --git a/tests/TestCase/Controller/ArticlesControllerTest.php b/tests/TestCase/Controller/ArticlesControllerTest.php index 094f736..eed81c4 100644 --- a/tests/TestCase/Controller/ArticlesControllerTest.php +++ b/tests/TestCase/Controller/ArticlesControllerTest.php @@ -46,7 +46,6 @@ public function testAuthorLike(): void public function testAuthorEqual(): void { $this->get('/articles?f[0]=author_id&c[0]=%3D&v[0][id][]=1'); - // debug($this->_getBodyAsString()); $this->assertResponseOk(); $this->assertResponseContains('First Article'); $this->assertResponseNotContains('Second Article'); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 1820505..aaa964a 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -91,7 +91,6 @@ Configure::write('App.encoding', 'utf8'); -// Ensure default test connection is defined if (!getenv('db_dsn')) { putenv('db_dsn=sqlite:///:memory:'); } @@ -101,7 +100,6 @@ 'timezone' => 'UTC', ]); -// Create test database schema if (env('FIXTURE_SCHEMA_METADATA')) { $loader = new SchemaLoader(); $loader->loadInternalFile(env('FIXTURE_SCHEMA_METADATA')); diff --git a/tests/test_app/App/Application.php b/tests/test_app/App/Application.php index cf1d4f8..d46117d 100644 --- a/tests/test_app/App/Application.php +++ b/tests/test_app/App/Application.php @@ -29,8 +29,6 @@ public function bootstrap(): void parent::bootstrap(); $this->addPlugin('CakeDC/SearchFilter', [ - // 'path' => ROOT . DS, - // 'autoload' => true, ]); } diff --git a/tests/test_app/config/routes.php b/tests/test_app/config/routes.php index d612291..28a4e21 100644 --- a/tests/test_app/config/routes.php +++ b/tests/test_app/config/routes.php @@ -7,10 +7,6 @@ $routes->setRouteClass(DashedRoute::class); $routes->scope('/', function (RouteBuilder $builder) { - - // $builder->connect('/articles', ['controller' => 'Articles', 'action' => 'index']); - // $builder->connect('/articles/search', ['controller' => 'Articles', 'action' => 'search']); - $builder->fallbacks(); }); };