Skip to content

Commit 7a839df

Browse files
committed
api eliminazione lista
1 parent 10e3e12 commit 7a839df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Endpoints/RulesLists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function deleteList(string $accountId, string $listId)
7676
$response = $this->adapter->delete('accounts/' . $accountId . '/rules/lists/' . $listId);
7777
$this->body = json_decode($response->getBody());
7878

79-
return $this->body->result;
79+
return $this->body;
8080
}
8181

8282
public function createListItem(string $accountId, string $listId, array $ip)

tests/Endpoints/RulesListsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testDeleteRulesList()
5353
$result = $rulesLists->deleteList('01a7362d577a6c3019a474fd6f485823', '2c0fc9fa937b11eaa1b71c4d701ab86e');
5454

5555
$this->assertEquals(true, $result->success);
56-
$this->assertEquals(true, $rulesLists->getBody()->result->success);
56+
$this->assertEquals(true, $rulesLists->getBody()->success);
5757
}
5858

5959
public function testGetRulesLists()

0 commit comments

Comments
 (0)