diff options
author | Paul Tirk <paultirk@paultirk.com> | 2022-04-11 15:11:49 +0000 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-04-30 20:04:30 +0200 |
commit | 4594fc6d1fa20defa9f338dab4b609cbd7a21a9c (patch) | |
tree | 15e5faa7cbe12e512d86d161a6d54ab7af13f916 /tests | |
parent | 98028e4422fe6f2c1af297271d0c5bcd01af70d4 (diff) |
add tests for starring/unstarring items by id
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Controller/ItemApiControllerTest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/Unit/Controller/ItemApiControllerTest.php b/tests/Unit/Controller/ItemApiControllerTest.php index e5d53a940..b65b1245f 100644 --- a/tests/Unit/Controller/ItemApiControllerTest.php +++ b/tests/Unit/Controller/ItemApiControllerTest.php @@ -499,4 +499,22 @@ class ItemApiControllerTest extends TestCase } + public function testStarByItemId() + { + $this->itemService->expects($this->once()) + ->method('starByItemId') + ->with($this->uid, 123, true); + + $this->class->starByItemId(123); + } + + + public function testUnstarByItemId() + { + $this->itemService->expects($this->once()) + ->method('starByItemId') + ->with($this->uid, 123, false); + + $this->class->unstarByItemId(123); + } } |