api eliminazione lista
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user