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

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

public testPatchAction ( )
    public function testPatchAction()
    {
        $this->createNewEmployee();
        $content = <<<JSON
{
    "data": {
        "type": "employee",
        "attributes": {
            "job_title": "Senior Web Developer"
        }
    }
}
JSON;
        $response = $this->call('PATCH', 'http://localhost/employees/1', json_decode($content, true), [], [], [], '');
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals('application/vnd.api+json', $response->headers->get('Content-type'));
    }