We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d1504f commit 501c226Copy full SHA for 501c226
1 file changed
test/Unit/Api/Resources/CategoryTest.php
@@ -25,4 +25,14 @@ public function testUpdatePassesThroughToConnection()
25
26
$category->update();
27
}
28
+
29
+ public function testDeletePassesThroughToConnection()
30
+ {
31
+ $category = new Category((object)(array('id' => 1)));
32
+ $this->connection->expects($this->once())
33
+ ->method('delete')
34
+ ->with($this->basePath . '/categories/1', $category->getUpdateFields());
35
36
+ $category->delete();
37
+ }
38
0 commit comments