Added pools class and tests

Small changes in loadbalancer configuration
This commit is contained in:
Martijn Smidt
2019-05-13 16:49:32 +02:00
parent 3cfeedbe4d
commit 99c174bcb3
14 changed files with 622 additions and 38 deletions

View File

@@ -90,10 +90,10 @@ class LoadBalancersTest extends TestCase
$response = $this->getPsr7JsonResponseForFixture('Endpoints/updateLoadBalancer.json');
$mock = $this->getMockBuilder(Adapter::class)->getMock();
$mock->method('patch')->willReturn($response);
$mock->method('put')->willReturn($response);
$mock->expects($this->once())
->method('patch')
->method('put')
->with(
$this->equalTo('zones/699d98642c564d2e855e9661899b7252/load_balancers/699d98642c564d2e855e9661899b7252'),
$this->equalTo($lbConfiguration->getArray())