11 $userCertificateRepository = $this->getMockBuilder(
'ilUserCertificateRepository')
12 ->disableOriginalConstructor()
15 $userCertificateRepository->method(
'fetchObjectIdsWithCertificateForUser')
16 ->willReturn(array(1, 2, 3));
20 $preloader->preLoad(100, array(500, 200));
22 $result = $preloader->isPreloaded(100, 1);
29 $userCertificateRepository = $this->getMockBuilder(
'ilUserCertificateRepository')
30 ->disableOriginalConstructor()
33 $userCertificateRepository->method(
'fetchObjectIdsWithCertificateForUser')
34 ->willReturn(array(1, 2, 3));
38 $preloader->preLoad(100, array(500, 200));
40 $result = $preloader->isPreloaded(100, 5);
47 $userCertificateRepository = $this->getMockBuilder(
'ilUserCertificateRepository')
48 ->disableOriginalConstructor()
51 $userCertificateRepository->method(
'fetchObjectIdsWithCertificateForUser')
52 ->willReturn(array(1, 2, 3));
56 $preloader->preLoad(100, array(500, 200));
58 $result = $preloader->isPreloaded(200, 1);
testUserWithCertificateIsNotPreloaded()
testUsersWithCertifcatesWillBePreoloaded()