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

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

public testPostAction ( )
    public function testPostAction()
    {
        $response = $this->createNewEmployee();
        $this->assertEquals(201, $response->getStatusCode());
        $this->assertEquals('application/vnd.api+json', $response->headers->get('Content-type'));
        $this->assertEquals('http://localhost/employees/1', $response->headers->get('Location'));
    }