deleteAll() public method

Delete All notifications about the current user.
public deleteAll ( $toId, $entity ) : boolean
$toId int
$entity
return boolean
 /** @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);
 }
 /**
  * Delete all notification of a given
  * Entity
  *
  * @param $entity_id
  * @return Bool
  */
 public function deleteAll($entity_id)
 {
     return $this->notifynderRepo->deleteAll($entity_id, $this->entity);
 }