Fenos\Notifynder\Contracts\NotificationDB::readAll PHP Method

readAll() public method

Make read all notification not read.
public readAll ( $toId, $entity ) : integer
$toId
$entity
return integer
    public function readAll($toId, $entity);

Usage Example

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);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::readAll