deleteAll() public method

Delete All notifications about the current user.
public deleteAll ( $toId, $entity ) : boolean
$toId int
$entity
return boolean
 /** @test */
 function it_delete_all_the_notification_of_the_given_entity()
 {
     $this->createMultipleNotifications();
     $deleted = $this->notificationRepo->deleteAll($this->to['id'], $this->to['type']);
     $this->assertEquals(10, $deleted);
     $this->assertCount(0, Notification::all());
 }