When i try to validate controller response using one of the available assertions like assertJsonValidationErrors
it gives the following error:
Failed to find a validation error in the response for key: 'name'
Here is my test:
Mesh::factory()->create(['name'=>'test']);
$this->post(route('meshes.store', ['name' => 'test']));
$this->response->assertUnprocessable()->assertJsonValidationErrors('name');