public function testPostActionCreateNonexistentTypeAndReturnErrors()
{
//error need to be tested as production or exception will be thrown in debug mode.
$this->app['config']->set('app.debug', false);
$content = <<<JSON
{
"data": {
"type": "not_employee",
"attributes": {}
}
}
JSON;
$response = $this->call('POST', 'http://localhost/employees', json_decode($content, true), [], [], []);
$this->assertEquals(422, $response->getStatusCode());
$this->assertEquals('application/vnd.api+json', $response->headers->get('Content-type'));
}