Fenos\Notifynder\Contracts\NotificationDB::deleteByCategory PHP Méthode

deleteByCategory() public méthode

Delete All notifications from a defined category.
public deleteByCategory ( $categoryName, $expired = false ) : boolean
$categoryName
$expired Bool
Résultat boolean
    public function deleteByCategory($categoryName, $expired = false);

Usage Example

 /** @test */
 public function it_delete_notification_by_categories(NotificationDB $notificationRepo)
 {
     $categoryName = 'notifynder.test';
     $notificationRepo->deleteByCategory($categoryName, false)->shouldBeCalled()->willReturn(1);
     $this->deleteByCategory($categoryName)->shouldReturn(1);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::deleteByCategory