◆ testPlaceholderDescriptions()
      
        
          | ILIAS\Course\Certificate\ilCoursePlaceholderDescriptionTest::testPlaceholderDescriptions  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 79 of file ilCoursePlaceholderDescriptionTest.php.
   81         $languageMock = $this->getMockBuilder(ilLanguage::class)
    82             ->disableOriginalConstructor()
    83             ->onlyMethods([
'txt'])
    86         $languageMock->expects($this->exactly(3))
    88             ->willReturn(
'Something translated');
    90         $defaultPlaceholder = $this->getMockBuilder(ilDefaultPlaceholderDescription::class)
    91             ->disableOriginalConstructor()
    94         $defaultPlaceholder->method(
'getPlaceholderDescriptions')
    97                     'SOMETHING' => 
'SOMEWHAT',
    98                     'SOMETHING_ELSE' => 
'ANYTHING'   102         $customUserPlaceholderObject = $this->getMockBuilder(ilObjectCustomUserFieldsPlaceholderDescription::class)
   103             ->disableOriginalConstructor()
   106         $customUserPlaceholderObject->method(
'getPlaceholderDescriptions')
   109                     '+SOMETHING' => 
'SOMEWHAT',
   110                     '+SOMETHING_ELSE' => 
'ANYTHING'   114         $placeholderDescriptionObject = 
new CoursePlaceholderDescription(200, $defaultPlaceholder, $languageMock, null, $customUserPlaceholderObject);
   116         $placeHolders = $placeholderDescriptionObject->getPlaceholderDescriptions();
   120                 'COURSE_TITLE' => 
'Something translated',
   121                 'SOMETHING' => 
'SOMEWHAT',
   122                 'SOMETHING_ELSE' => 
'ANYTHING',
   123                 '+SOMETHING' => 
'SOMEWHAT',
   124                 '+SOMETHING_ELSE' => 
'ANYTHING',
   125                 'DATE_COMPLETED' => 
'Something translated',
   126                 'DATETIME_COMPLETED' => 
'Something translated'  
 
 
◆ testPlaceholderGetHtmlDescription()
      
        
          | ILIAS\Course\Certificate\ilCoursePlaceholderDescriptionTest::testPlaceholderGetHtmlDescription  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 35 of file ilCoursePlaceholderDescriptionTest.php.
   37         $languageMock = $this->getMockBuilder(ilLanguage::class)
    38             ->disableOriginalConstructor()
    39             ->onlyMethods([
'txt', 
'loadLanguageModule'])
    42         $templateMock = $this->getMockBuilder(ilTemplate::class)
    43             ->disableOriginalConstructor()
    46         $templateMock->method(
'get')
    49         $userDefinePlaceholderMock = $this->getMockBuilder(ilUserDefinedFieldsPlaceholderDescription::class)
    50             ->disableOriginalConstructor()
    53         $userDefinePlaceholderMock->method(
'createPlaceholderHtmlDescription')
    56         $userDefinePlaceholderMock->method(
'getPlaceholderDescriptions')
    59         $customUserPlaceholderObject = $this->getMockBuilder(ilObjectCustomUserFieldsPlaceholderDescription::class)
    60             ->disableOriginalConstructor()
    63         $customUserPlaceholderObject->method(
'getPlaceholderDescriptions')
    65                 '+SOMETHING' => 
'SOMEWHAT',
    66                 '+SOMETHING_ELSE' => 
'ANYTHING'    69         $customUserPlaceholderObject->method(
'createPlaceholderHtmlDescription')
    72         $placeholderDescriptionObject = 
new CoursePlaceholderDescription(200, null, $languageMock, $userDefinePlaceholderMock, $customUserPlaceholderObject);
    74         $html = $placeholderDescriptionObject->createPlaceholderHtmlDescription($templateMock);
    76         $this->assertSame(
'', $html);
  
 
 
The documentation for this class was generated from the following file: