diff --git a/config/routes.php b/config/routes.php index 9011fc435..32ecdfa8c 100644 --- a/config/routes.php +++ b/config/routes.php @@ -6,7 +6,6 @@ use Slim\Routing\RouteCollectorProxy; return function (App $app) { - // Redirect to Swagger documentation $app->get('/', \App\Action\Home\HomeAction::class)->setName('home'); // API diff --git a/tests/TestCase/Action/Customer/CustomerCreatorActionTest.php b/tests/TestCase/Action/Customer/CustomerCreatorActionTest.php index 7dec44489..b6dfd2c9d 100644 --- a/tests/TestCase/Action/Customer/CustomerCreatorActionTest.php +++ b/tests/TestCase/Action/Customer/CustomerCreatorActionTest.php @@ -38,17 +38,15 @@ public function testCreateCustomer(): void $response = $this->app->handle($request); - // No logger errors - $this->assertSame([], $this->getLoggerErrors()); - $this->assertTrue($this->getLogger()->hasInfoThatContains('Customer created successfully: 1')); - // Check response $this->assertSame(StatusCodeInterface::STATUS_CREATED, $response->getStatusCode()); $this->assertJsonContentType($response); $this->assertJsonData(['customer_id' => 1], $response); // Check logger - $this->assertTrue($this->getLogger()->hasInfoThatContains('Customer created successfully')); + // No logger errors + $this->assertSame([], $this->getLoggerErrors()); + $this->assertTrue($this->getLogger()->hasInfoThatContains('Customer created successfully: 1')); // Check database $this->assertTableRowCount(1, 'customers');