/** @test */ public function it_should_check_responses_with_errors() { $response = new Response(); $response->fill($this->createErrorApiResponse('some error')); $this->assertTrue($response->hasErrors()); $response = new Response(); $response->fill($this->createSuccessApiResponse()); $this->assertFalse($response->hasErrors()); }