Definition at line 32 of file DateTimeInputTest.php.
 
◆ buildFactory()
  
  
      
        
          | DateTimeInputTest::buildFactory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 71 of file DateTimeInputTest.php.
Referenced by setUp().
   71                                      : I\Input\Field\Factory
    73         $df = 
new Data\Factory();
    74         $language = $this->createMock(
ILIAS\Language\Language::class);
    76         return new I\Input\Field\Factory(
 Interface Observer  Contains several chained tasks and infos about them. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ getLanguage()
      
        
          | DateTimeInputTest::getLanguage  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getUIFactory()
      
        
          | DateTimeInputTest::getUIFactory  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 47 of file DateTimeInputTest.php.
References ILIAS\Repository\symbol().
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ setUp()
      
        
          | DateTimeInputTest::setUp  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testCommonRendering()
      
        
          | DateTimeInputTest::testCommonRendering  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testRender()
      
        
          | DateTimeInputTest::testRender  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 173 of file DateTimeInputTest.php.
References $datetime, and $r.
  175         $datetime = $this->factory->dateTime(
'label', 
'byline');
   176         $r = $this->getDefaultRenderer();
   177         $html = $this->brutallyTrimHTML(
$r->render(
$datetime));
   179         $expected = $this->brutallyTrimHTML(
'   180         <fieldset class="c-input" data-il-ui-component="date-time-field-input" data-il-ui-input-name="">   181             <label for="id_1">label</label>   182             <div class="c-input__field">   183                 <div class="c-input-group">   184                     <input id="id_1" type="date" class="c-field-datetime" />   187             <div class="c-input__help-byline">byline</div>   190         $this->assertEquals($expected, $html);
 
 
 
 
◆ testWithFormat()
      
        
          | DateTimeInputTest::testWithFormat  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 85 of file DateTimeInputTest.php.
References $datetime.
   87         $format = $this->data_factory->dateFormat()->germanShort();
    88         $datetime = $this->factory->datetime(
'label', 
'byline')
    89                                   ->withFormat($format);
 
 
 
 
◆ testWithInvalidTimeZone()
      
        
          | DateTimeInputTest::testWithInvalidTimeZone  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 146 of file DateTimeInputTest.php.
References $datetime.
  148         $this->expectException(InvalidArgumentException::class);
   149         $datetime = $this->factory->datetime(
'label', 
'byline');
   150         $tz = 
'NOT/aValidTZ';
 
 
 
 
◆ testWithInvalidValue()
      
        
          | DateTimeInputTest::testWithInvalidValue  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 166 of file DateTimeInputTest.php.
References $datetime.
  168         $this->expectException(InvalidArgumentException::class);
   169         $datetime = $this->factory->datetime(
'label', 
'byline')
   170             ->withValue(
"this is no datetime...");
 
 
 
 
◆ testWithMaxValue()
      
        
          | DateTimeInputTest::testWithMaxValue  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithMinValue()
      
        
          | DateTimeInputTest::testWithMinValue  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithTimeOnly()
      
        
          | DateTimeInputTest::testWithTimeOnly  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithTimeZone()
      
        
          | DateTimeInputTest::testWithTimeZone  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithUseTime()
      
        
          | DateTimeInputTest::testWithUseTime  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithValueThatIsDateTimeImmutable()
      
        
          | DateTimeInputTest::testWithValueThatIsDateTimeImmutable  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 154 of file DateTimeInputTest.php.
References $datetime.
  156         $string_value = 
"1985-05-04 00:00";
   157         $value = new \DateTimeImmutable($string_value);
   158         $datetime = $this->factory->datetime(
'label', 
'byline')
 
 
 
 
◆ $data_factory
◆ $factory
  
  
      
        
          | I Input Field Factory DateTimeInputTest::$factory | 
         
       
   | 
  
protected   | 
  
 
 
◆ $name_source
The documentation for this class was generated from the following file: