mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-09 16:14:29 -06:00
Clean up code, add test condition
This commit is contained in:
parent
12384fc2d6
commit
9320b25027
|
@ -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(){
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user