public function it_delete_notification_limiting_the_number_of_the_given_entity(NotificationDB $notificationRepo) { $entity_id = 1; $numberLimit = 5; $order = 'asc'; $notificationRepo->deleteLimit($entity_id, null, $numberLimit, $order)->shouldBeCalled()->willReturn($numberLimit); $this->deleteLimit($entity_id, $numberLimit, $order)->shouldReturn($numberLimit); }