Fenos\Notifynder\Contracts\NotificationDB::deleteByCategory PHP 메소드

deleteByCategory() 공개 메소드

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

Usage Example

예제 #1
0
 /** @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