public function it_read_all_notification_of_the_given_entity(NotificationDB $notificationRepo) { $id = 1; $entity = null; $notificationDeleted = 10; $notificationRepo->readAll($id, $entity)->shouldBeCalled()->willReturn($notificationDeleted); $this->readAll($id)->shouldReturn($notificationDeleted); }