Adds the query parameter to the guzzle call for GET requests.

This commit is contained in:
Adam Malone
2017-09-14 08:20:18 +10:00
parent a4ddb61d2a
commit 7d838d7f5f
15 changed files with 77 additions and 48 deletions

View File

@@ -43,8 +43,12 @@ class ZoneLockdownTest extends PHPUnit_Framework_TestCase
$mock->expects($this->once())
->method('get')
->with($this->equalTo('zones/023e105f4ecef8ad9ca31a8372d0c353/firewall/lockdowns?page=1&per_page=20'),
$this->equalTo([])
->with($this->equalTo('zones/023e105f4ecef8ad9ca31a8372d0c353/firewall/lockdowns'),
$this->equalTo([
'page' => 1,
'per_page' => 20,
]),
$this->equalTo([])
);
$zones = new \Cloudflare\API\Endpoints\ZoneLockdown($mock);