Clean up code, add test condition

This commit is contained in:
sctn4elk 2024-06-01 10:27:11 -05:00
parent 12384fc2d6
commit 9320b25027
2 changed files with 8 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class ImageController extends BaseController {
return $this->unprocessableRequestResponse("Request type is not GET");
}
return $this->unprocessableRequestResponse("updateImage is not implemented");
return $this->unprocessableRequestResponse("blobImage is not implemented");
}
private function validateImage(){

View File

@ -35,6 +35,13 @@ class CustomerControllerTest extends TestCase {
$this->control = null;
}
public function testConnection(): void
{
$response = $this->httpClient->request('GET', 'http://localhost/CustomerRewards/index.php');
$statusCode = $response->getStatusCode();
$this->assertSame(404, $statusCode);
}
public function testConstruct(): void
{
$this->assertSame('CustomerController', $this->control->basename);