Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 016b3a7

Browse files
authored
rename method
1 parent ba8729d commit 016b3a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Api/Customers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function show($id)
9494
* @param int $id
9595
* @return array
9696
*/
97-
public function removeCustomer($id)
97+
public function remove($id)
9898
{
9999
return $this->delete('/customers/'.$id);
100100
}

tests/Api/CustomersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function test_can_customer_delete()
9595
'*rest/all/V1/customers/1' => Http::response([], 200),
9696
]);
9797

98-
$api = MagentoFacade::api('customers')->removeCustomer(1);
98+
$api = MagentoFacade::api('customers')->remove(1);
9999

100100
$this->assertTrue($api->ok());
101101
}

0 commit comments

Comments
 (0)