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

assertDescribeResponseNotEmpty() public method

Asserts describe response has all properties
public assertDescribeResponseNotEmpty ( Scalr\Tests\Functional\Api\ApiTestResponse $response )
$response Scalr\Tests\Functional\Api\ApiTestResponse Api response
    public function assertDescribeResponseNotEmpty(ApiTestResponse $response)
    {
        $body = $response->getBody();
        $this->assertEquals(200, $response->status, $this->printResponseError($response));
        $this->assertNotEmpty($body);
        $this->assertObjectNotHasAttribute('errors', $body);
        $this->assertObjectHasAttribute('data', $body);
        $this->assertObjectHasAttribute('pagination', $body);
    }