phpunit test api port number checking
I want to check my api status with port number.
How to want to write the test code for port no with api.
My sample code :
public function testExample(){
$response = $this->call('GET', '/v1/candidates');
$this->assertEquals(200, $response->status());
}
from Laravel Questions and Answers https://laravelquestions.com/php/phpunit-test-api-port-number-checking/
via Lzo Media
No comments:
Post a Comment