PHP Class spec\Fenos\Notifynder\Notifications\NotificationManagerSpec

Inheritance: extends PhpSpec\ObjectBehavior
显示文件 Open project: fenos/notifynder

Public Methods

Method Description
it_count_notification_not_read ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_delete_a_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_delete_all_notification_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_delete_notification_by_categories ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_delete_notification_limiting_the_number_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_find_a_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_get_all_notifications_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo, NotifynderCollection $collection )
it_get_last_notification_of_the_current_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_get_last_notification_of_the_current_entity_filtering_by_category ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_get_not_read_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo, NotifynderCollection $collection )
it_is_initializable ( )
it_read_all_notification_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_read_notifications_limit_to_a_given_number ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_read_one_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_send_a_single_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_send_multiple_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
it_try_to_find_an_inexistent_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
let ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )

Method Details

it_count_notification_not_read() public method

public it_count_notification_not_read ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_delete_a_notification_by_id() public method

public it_delete_a_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_delete_all_notification_of_the_given_entity() public method

public it_delete_all_notification_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_delete_notification_by_categories() public method

public it_delete_notification_by_categories ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_delete_notification_limiting_the_number_of_the_given_entity() public method

public it_delete_notification_limiting_the_number_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_find_a_notification_by_id() public method

public it_find_a_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_get_all_notifications_of_the_given_entity() public method

public it_get_all_notifications_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo, NotifynderCollection $collection )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB
$collection Fenos\Notifynder\Models\NotifynderCollection

it_get_last_notification_of_the_current_entity() public method

public it_get_last_notification_of_the_current_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_get_last_notification_of_the_current_entity_filtering_by_category() public method

public it_get_last_notification_of_the_current_entity_filtering_by_category ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_get_not_read_notification() public method

public it_get_not_read_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo, NotifynderCollection $collection )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB
$collection Fenos\Notifynder\Models\NotifynderCollection

it_is_initializable() public method

public it_is_initializable ( )

it_read_all_notification_of_the_given_entity() public method

public it_read_all_notification_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_read_notifications_limit_to_a_given_number() public method

public it_read_notifications_limit_to_a_given_number ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_read_one_notification_by_id() public method

public it_read_one_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_send_a_single_notification() public method

public it_send_a_single_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_send_multiple_notification() public method

public it_send_multiple_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

it_try_to_find_an_inexistent_notification() public method

public it_try_to_find_an_inexistent_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB

let() public method

public let ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB