refactor: remove status_code from response classes and update related tests
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 3m5s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Failing after 2m56s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 3m12s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 3m32s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 3m17s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m42s

This commit is contained in:
2025-12-10 08:45:51 -05:00
parent f59dcb2dcc
commit 84c3b392ba
9 changed files with 27 additions and 22 deletions

View File

@@ -20,7 +20,7 @@ class IndexControllerTest extends AbstractController
$response = $controller->get($this->getMockRequest());
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals('{"message":"Server is running","status_code":200}', (string)$response->getBody());
$this->assertEquals('{"message":"Server is running"}', (string)$response->getBody());
}
/**
@@ -35,6 +35,6 @@ class IndexControllerTest extends AbstractController
$response = $controller->post($this->getMockRequest());
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals('{"message":"POST request received","status_code":200}', (string)$response->getBody());
$this->assertEquals('{"message":"POST request received"}', (string)$response->getBody());
}
}