Scalr\Tests\Functional\Api\ApiTestCase::assertFetchResponseNotEmpty PHP Method

assertFetchResponseNotEmpty() public method

Asserts fetch response has all properties
public assertFetchResponseNotEmpty ( Scalr\Tests\Functional\Api\ApiTestResponse $response )
$response Scalr\Tests\Functional\Api\ApiTestResponse Api response
    public function assertFetchResponseNotEmpty(ApiTestResponse $response)
    {
        $body = $response->getBody();
        $this->assertNotEmpty($body);
        $this->assertObjectNotHasAttribute('errors', $body);
        $this->assertObjectHasAttribute('data', $body);
        $this->assertNotEmpty($body->data);
    }