From 7a839dfc2a68fa97d01c27c809ae27f49c14307f Mon Sep 17 00:00:00 2001 From: Edoardo Zuliani Date: Thu, 2 Jan 2025 14:57:34 +0100 Subject: [PATCH] api eliminazione lista --- src/Endpoints/RulesLists.php | 2 +- tests/Endpoints/RulesListsTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Endpoints/RulesLists.php b/src/Endpoints/RulesLists.php index b019b95..68dbb2f 100755 --- a/src/Endpoints/RulesLists.php +++ b/src/Endpoints/RulesLists.php @@ -76,7 +76,7 @@ class RulesLists implements API $response = $this->adapter->delete('accounts/' . $accountId . '/rules/lists/' . $listId); $this->body = json_decode($response->getBody()); - return $this->body->result; + return $this->body; } public function createListItem(string $accountId, string $listId, array $ip) diff --git a/tests/Endpoints/RulesListsTest.php b/tests/Endpoints/RulesListsTest.php index a4d08b8..54d86e5 100755 --- a/tests/Endpoints/RulesListsTest.php +++ b/tests/Endpoints/RulesListsTest.php @@ -53,7 +53,7 @@ class RulesListsTest extends TestCase $result = $rulesLists->deleteList('01a7362d577a6c3019a474fd6f485823', '2c0fc9fa937b11eaa1b71c4d701ab86e'); $this->assertEquals(true, $result->success); - $this->assertEquals(true, $rulesLists->getBody()->result->success); + $this->assertEquals(true, $rulesLists->getBody()->success); } public function testGetRulesLists()