mirror of
https://github.com/sctn4elk/CustomerRewardsRESTAPI.git
synced 2025-01-10 05:04: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("Request type is not GET");
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->unprocessableRequestResponse("updateImage is not implemented");
|
return $this->unprocessableRequestResponse("blobImage is not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
private function validateImage(){
|
private function validateImage(){
|
||||||
|
|
|
@ -35,6 +35,13 @@ class CustomerControllerTest extends TestCase {
|
||||||
$this->control = null;
|
$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
|
public function testConstruct(): void
|
||||||
{
|
{
|
||||||
$this->assertSame('CustomerController', $this->control->basename);
|
$this->assertSame('CustomerController', $this->control->basename);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user