NilPortugues\Tests\Laravel5\JsonApi\JsonApiControllerTest::testGetActionWhenEmployeeDoesNotExist PHP Метод

testGetActionWhenEmployeeDoesNotExist() публичный Метод

    public function testGetActionWhenEmployeeDoesNotExist()
    {
        //error need to be tested as production or exception will be thrown in debug mode.
        $this->app['config']->set('app.debug', false);
        $response = $this->call('GET', 'http://localhost/employees/1000');
        $this->assertEquals(404, $response->getStatusCode());
        $this->assertEquals('application/vnd.api+json', $response->headers->get('Content-type'));
    }