This commit is contained in:
Edoardo Zuliani
2025-01-02 14:01:47 +01:00
parent c289ef2ef7
commit 9a5995970b

View File

@@ -18,7 +18,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('post') ->method('post')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists'), $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists'),
$this->equalTo([ $this->equalTo([
'kind' => 'ip', 'kind' => 'ip',
'name' => 'ip-allowlist', 'name' => 'ip-allowlist',
@@ -45,7 +45,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('get') ->method('get')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists') $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists')
); );
$rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock); $rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock);
@@ -68,7 +68,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('get') ->method('get')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e') $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e')
); );
$rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock); $rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock);
@@ -91,7 +91,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('get') ->method('get')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e/items'), $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e/items'),
$this->equalTo([ $this->equalTo([
'per_page' => 20, 'per_page' => 20,
]) ])
@@ -117,7 +117,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('post') ->method('post')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e/items') $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e/items')
); );
$rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock); $rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock);
@@ -139,7 +139,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('delete') ->method('delete')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e/items') $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/2c0fc9fa937b11eaa1b71c4d701ab86e/items')
); );
$rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock); $rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock);
@@ -159,7 +159,7 @@ class RulesListsTest extends TestCase
$mock->expects($this->once()) $mock->expects($this->once())
->method('get') ->method('get')
->with( ->with(
$this->equalTo('/accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/bulk_operations/4da8780eeb215e6cb7f48dd981c4ea02') $this->equalTo('accounts/01a7362d577a6c3019a474fd6f485823/rules/lists/bulk_operations/4da8780eeb215e6cb7f48dd981c4ea02')
); );
$rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock); $rulesLists = new \Cloudflare\API\Endpoints\RulesLists($mock);