コード例 #1
0
 /**
  * @param int $id
  * @param int $box
  * @return int
  */
 public function deleteMessage($id, $box)
 {
     return $this->repository->delete($id, $box)->rowCount();
 }
コード例 #2
0
 /**
  * @param int $recipientId
  *
  * @return int
  */
 public function countUnreadMessages($recipientId)
 {
     return $this->repository->countUnreadMessages($recipientId);
 }
コード例 #3
0
 public function testCountUnreadMessages()
 {
     $this->assertEquals(1, $this->repository->countUnreadMessages(2));
 }