diff --git a/Controller/API/ImageController.php b/Controller/API/ImageController.php index fa3d0ca..b44eea9 100644 --- a/Controller/API/ImageController.php +++ b/Controller/API/ImageController.php @@ -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(){ diff --git a/Tests/Controller/API/CustomerControllerTest.php b/Tests/Controller/API/CustomerControllerTest.php index 66ff35e..da6e09f 100644 --- a/Tests/Controller/API/CustomerControllerTest.php +++ b/Tests/Controller/API/CustomerControllerTest.php @@ -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);