Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skie committed Sep 17, 2024
1 parent c24cc70 commit 7f889af
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion tests/TestCase/Controller/ArticlesControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 0 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@

Configure::write('App.encoding', 'utf8');

// Ensure default test connection is defined
if (!getenv('db_dsn')) {
putenv('db_dsn=sqlite:///:memory:');
}
Expand All @@ -101,7 +100,6 @@
'timezone' => 'UTC',
]);

// Create test database schema
if (env('FIXTURE_SCHEMA_METADATA')) {
$loader = new SchemaLoader();
$loader->loadInternalFile(env('FIXTURE_SCHEMA_METADATA'));
Expand Down
2 changes: 0 additions & 2 deletions tests/test_app/App/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public function bootstrap(): void
parent::bootstrap();

$this->addPlugin('CakeDC/SearchFilter', [
// 'path' => ROOT . DS,
// 'autoload' => true,
]);
}

Expand Down
4 changes: 0 additions & 4 deletions tests/test_app/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
};

0 comments on commit 7f889af

Please sign in to comment.