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

deleteAll() public method

Delete All notifications about the current user.
public deleteAll ( $toId, $entity ) : boolean
$toId int
$entity
return boolean
    public function deleteAll($toId, $entity);

Usage Example

Ejemplo n.º 1
0
 /** @test */
 public function it_delete_all_notification_of_the_given_entity(NotificationDB $notificationRepo)
 {
     $entity_id = 1;
     $notificationsDeleted = 10;
     $notificationRepo->deleteAll($entity_id, null)->shouldBeCalled()->willReturn($notificationsDeleted);
     $this->deleteAll($entity_id)->shouldReturn($notificationsDeleted);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::deleteAll