readAll() public method

Make read all notification not read.
public readAll ( $toId, $entity ) : integer
$toId
$entity
return integer
Ejemplo n.º 1
0
 /** @test */
 public function it_read_all_notification_of_the_given_entity(NotificationDB $notificationRepo)
 {
     $id = 1;
     $entity = null;
     $notificationDeleted = 10;
     $notificationRepo->readAll($id, $entity)->shouldBeCalled()->willReturn($notificationDeleted);
     $this->readAll($id)->shouldReturn($notificationDeleted);
 }
 /**
  * Read all notification of the
  * given entity
  *
  * @param $to_id
  * @return Number
  */
 public function readAll($to_id)
 {
     return $this->notifynderRepo->readAll($to_id, $this->entity);
 }