Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function testGetAccount() |
||
35 | { |
||
36 | $response = $this->getPsr7JsonResponseForFixture('Endpoints/Account/getAccount.json'); |
||
37 | $client = $this->getMockClient($response); |
||
38 | |||
39 | /** @var \AcquiaCloudApi\CloudApi\ClientInterface $client */ |
||
40 | $account = new Account($client); |
||
41 | $result = $account->get(); |
||
42 | |||
43 | $this->assertInstanceOf('\AcquiaCloudApi\Response\AccountResponse', $result); |
||
44 | |||
45 | foreach ($this->properties as $property) { |
||
46 | $this->assertObjectHasAttribute($property, $result); |
||
47 | } |
||
50 |