NilPortugues\Tests\Laravel5\JsonApi\JsonApiControllerTest::createNewEmployee PHP Method

createNewEmployee() private method

private createNewEmployee ( ) : Illuminate\Http\Response
return Illuminate\Http\Response
    private function createNewEmployee()
    {
        $content = <<<JSON
{
    "data": {
        "type": "employee",
        "attributes": {
            "company": "NilPortugues.com",
            "surname": "Portugués",
            "first_name": "Nil",
            "email_address": "nilportugues@localhost",
            "job_title": "Web Developer",
            "business_phone": "(123)555-0100",
            "home_phone": "(123)555-0102",
            "mobile_phone": null,
            "fax_number": "(123)555-0103",
            "address": "Plaça Catalunya 1",
            "city": "Barcelona",
            "state_province": "Barcelona",
            "zip_postal_code": "08028",
            "country_region": "Spain",
            "web_page": "http://nilportugues.com",
            "notes": null,
            "attachments": null
        }
    }
}
JSON;
        $response = $this->call('POST', 'http://localhost/employees', json_decode($content, true), [], [], []);
        return $response;
    }