Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class LiveDevTest extends CloudApiTestCase |
||
9 | { |
||
10 | |||
11 | public function testLiveDevEnable() |
||
12 | { |
||
13 | $response = $this->getPsr7JsonResponseForFixture('Endpoints/Environments/enableLiveDev.json'); |
||
14 | $client = $this->getMockClient($response); |
||
15 | |||
16 | /** @var \AcquiaCloudApi\CloudApi\ClientInterface $client */ |
||
17 | $environment = new Environments($client); |
||
18 | $result = $environment->enableLiveDev('14-0c7e79ab-1c4a-424e-8446-76ae8be7e851'); |
||
19 | |||
20 | $this->assertInstanceOf('\AcquiaCloudApi\Response\OperationResponse', $result); |
||
21 | |||
22 | $this->assertEquals('Live Dev is being enabled.', $result->message); |
||
23 | } |
||
24 | |||
25 | public function testLiveDevDisable() |
||
37 | } |
||
38 | } |
||
39 |