Delete All notifications from a
defined category.
public deleteByCategory ( $categoryName, $expired = false ) : boolean | ||
$categoryName | ||
$expired | Bool | |
리턴 | boolean |
/** @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); }
/** * Delete All notifications from a * defined category * * @param $category_name string * @param $expired Bool * @return Bool */ public function deleteByCategory($category_name, $expired = false) { return $this->notifynderRepo->deleteByCategory($category_name, $expired); }