156         $defaultPlaceholderValues = $this->getMockBuilder(ilDefaultPlaceholderValues::class)
   157             ->disableOriginalConstructor()
   160         $defaultPlaceholderValues->method(
'getPlaceholderValuesForPreview')
   163                     'SOME_PLACEHOLDER' => 
'aaa',
   164                     'SOME_OTHER_PLACEHOLDER' => 
'bbb'   168         $language = $this->getMockBuilder(ilLanguage::class)
   169             ->disableOriginalConstructor()
   172         $language->method(
'txt')
   173             ->willReturnCallback(
function ($variableValue) {
   174                 if ($variableValue === 
'lang_sep_decimal') {
   176                 } elseif ($variableValue === 
'lang_sep_thousand') {
   180                 return 'Some Translation: ' . $variableValue;
   183         $dateHelper = $this->getMockBuilder(ilCertificateDateHelper::class)
   186         $objectMock = $this->getMockBuilder(ilObject::class)
   187             ->disableOriginalConstructor()
   190         $objectMock->method(
'getTitle')
   191             ->willReturn(
'Some Title');
   193         $objectHelper = $this->getMockBuilder(ilCertificateObjectHelper::class)
   196         $objectHelper->method(
'getInstanceByObjId')
   197             ->willReturn($objectMock);
   199         $utilHelper = $this->getMockBuilder(ilCertificateUtilHelper::class)
   202         $utilHelper->method(
'prepareFormOutput')
   203             ->willReturnCallback(
function ($input) {
   207         $objectLPHelper = $this->getMockBuilder(ilCertificateObjectLPHelper::class)
   210         $lpCollection = $this->getMockBuilder(ilLPCollectionOfSCOs::class)
   211             ->disableOriginalConstructor()
   212             ->onlyMethods([
'getPossibleItems', 
'isAssignedEntry'])
   215         $lpCollection->method(
'getPossibleItems')
   218                     'title' => 
'Some Title'   221                     'title' => 
'Some Other Title'   225         $lpCollection->method(
'isAssignedEntry')
   228         $objectLPMock = $this->getMockBuilder(ilObjectLP::class)
   229             ->disableOriginalConstructor()
   232         $objectLPMock->method(
'getCollectionInstance')
   233             ->willReturn($lpCollection);
   235         $objectLPHelper->method(
'getInstance')
   236             ->willReturn($objectLPMock);
   238         $lpStatusHelper = $this->getMockBuilder(ilCertificateLPStatusHelper::class)
   242             $defaultPlaceholderValues,
   251         $result = $scormPlaceholderValues->getPlaceholderValuesForPreview(100, 10);
   255                 'SCORM_TITLE' => 
'Some Title',
   256                 'SCORM_POINTS' => 
'80,7 %',
   257                 'SCORM_POINTS_MAX' => 
'90',
   258                 'SCO_T_0' => 
'Some Title',
   260                 'SCO_PM_0' => 
'90,9',
   261                 'SCO_PP_0' => 
'33,3 %',
   262                 'SCO_T_1' => 
'Some Other Title',
   264                 'SCO_PM_1' => 
'90,9',
   265                 'SCO_PP_1' => 
'33,3 %',
   266                 'SOME_PLACEHOLDER' => 
'aaa',
   267                 'SOME_OTHER_PLACEHOLDER' => 
'bbb'