public deleteByCategory ( $categoryName, $expired = false ) : boolean | ||
$categoryName | ||
$expired | Bool | |
return | boolean |
public function deleteByCategory($categoryName, $expired = false);
/** @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); }