api eliminazione lista

This commit is contained in:
Edoardo Zuliani
2025-01-02 14:57:34 +01:00
parent 10e3e120e4
commit 7a839dfc2a
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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()