Skip to content

Commit 501c226

Browse files
Added Delete test to categories
1 parent 7d1504f commit 501c226

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/Unit/Api/Resources/CategoryTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,14 @@ public function testUpdatePassesThroughToConnection()
2525

2626
$category->update();
2727
}
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+
}
2838
}

0 commit comments

Comments
 (0)