public function it_delete_all_notification_of_the_given_entity(NotificationDB $notificationRepo) { $entity_id = 1; $notificationsDeleted = 10; $notificationRepo->deleteAll($entity_id, null)->shouldBeCalled()->willReturn($notificationsDeleted); $this->deleteAll($entity_id)->shouldReturn($notificationsDeleted); }