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

Commit 8e8e224

Browse files
committed
Add product edit endpoint - test
1 parent 8779518 commit 8e8e224

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Api/ProductTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,15 @@ public function test_can_call_magento_api_products_show()
3030

3131
$this->assertTrue($api->ok());
3232
}
33+
34+
public function test_can_edit_product()
35+
{
36+
Http::fake([
37+
'*rest/all/V1/products/foo' => Http::response([], 200),
38+
]);
39+
40+
$api = MagentoFacade::api('products')->edit('foo', []);
41+
42+
$this->assertTrue($api->ok());
43+
}
3344
}

0 commit comments

Comments
 (0)