summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Unit/Controller/ItemApiControllerTest.php18
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);
+ }
}