seregazhuk\tests\Bot\ResponseTest::it_should_check_responses_with_errors PHP Method

it_should_check_responses_with_errors() public method

    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());
    }