Definition at line 31 of file NumericInputTest.php.
 
◆ buildFactory()
  
  
      
        
          | NumericInputTest::buildFactory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ setUp()
      
        
          | NumericInputTest::setUp  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testConstraintForRequirementForFloat()
testNullValue 
Definition at line 216 of file NumericInputTest.php.
  219         $field_required = $field->withRequired(
true);
   221         $value = $field->withInput($post_data)->getContent();
   222         $this->assertTrue($value->isOk());
   224         $this->assertEquals(1, $value->value());
   226         $value = $field_required->withInput($post_data)->getContent();
   227         $this->assertTrue($value->isOK());
   228         $this->assertEquals(1, $value->value());
 
 
 
 
◆ testEmptyValue()
testNullValue 
Definition at line 182 of file NumericInputTest.php.
  185         $field_required = $field->withRequired(
true);
   187         $value = $field->withInput($post_data)->getContent();
   188         $this->assertTrue($value->isOk());
   189         $this->assertNull($value->value());
   191         $field_required = $field_required->withInput($post_data);
   192         $value = $field_required->getContent();
   193         $this->assertTrue($value->isError());
 
 
 
 
◆ testImplementsFactoryInterface()
      
        
          | NumericInputTest::testImplementsFactoryInterface  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 53 of file NumericInputTest.php.
References Vendor\Package\$f, and buildFactory().
   57         $numeric = 
$f->numeric(
"label", 
"byline");
    59         $this->assertInstanceOf(\
ILIAS\
UI\
Component\Input\Container\Form\FormInput::class, $numeric);
    60         $this->assertInstanceOf(Field\Numeric::class, $numeric);
 Class ChatMainBarProvider . 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ testNullValue()
      
        
          | NumericInputTest::testNullValue  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 163 of file NumericInputTest.php.
References Vendor\Package\$f, and buildFactory().
  167         $field = 
$f->numeric(
'')->withNameFrom($this->name_source);
   168         $field_required = $field->withRequired(
true);
   170         $value = $field->withInput($post_data)->getContent();
   171         $this->assertTrue($value->isOk());
   172         $this->assertNull($value->value());
   174         $value = $field_required->withInput($post_data)->getContent();
   175         $this->assertTrue($value->isError());
 
 
 
 
◆ testRender()
      
        
          | NumericInputTest::testRender  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 64 of file NumericInputTest.php.
References Vendor\Package\$f, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), buildFactory(), and ILIAS_UI_TestBase\getDefaultRenderer().
   69         $numeric = 
$f->numeric($label, $byline)->withNameFrom($this->name_source);
    75 <div class="form-group row">    76    <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label>    77    <div class="col-sm-8 col-md-9 col-lg-10">    78       <input id="id_1" type="number" name="name_0" class="form-control form-control-sm" />    79       <div class="help-block">byline</div>    83         $this->assertEquals($expected, $html);
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
 
 
 
◆ testRenderDisabled()
      
        
          | NumericInputTest::testRenderDisabled  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 146 of file NumericInputTest.php.
References Vendor\Package\$f, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), buildFactory(), and ILIAS_UI_TestBase\getDefaultRenderer().
  150         $numeric = 
$f->numeric($label)->withNameFrom($this->name_source)->withDisabled(
true);
   156 <div class="form-group row">   157    <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label>        158    <div class="col-sm-8 col-md-9 col-lg-10">            <input id="id_1" type="number" name="name_0" disabled="disabled" class="form-control form-control-sm" />                                        </div>   160         $this->assertEquals($expected, $html);
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
 
 
 
◆ testRenderError()
      
        
          | NumericInputTest::testRenderError  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 86 of file NumericInputTest.php.
References Vendor\Package\$f, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), buildFactory(), and ILIAS_UI_TestBase\getDefaultRenderer().
   92         $numeric = 
$f->numeric($label, $byline)->withNameFrom($this->name_source)->withError($error);
    98 <div class="form-group row">    99    <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label>        100    <div class="col-sm-8 col-md-9 col-lg-10">   101       <div class="help-block alert alert-danger" aria-describedby="id_1" role="alert">an_error</div>   102       <input id="id_1" type="number" name="name_0" class="form-control form-control-sm" />                 103       <div class="help-block">byline</div>   106         $this->assertEquals($expected, $html);
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
 
 
 
◆ testRenderNoByline()
      
        
          | NumericInputTest::testRenderNoByline  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 109 of file NumericInputTest.php.
References Vendor\Package\$f, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), buildFactory(), and ILIAS_UI_TestBase\getDefaultRenderer().
  113         $numeric = 
$f->numeric($label)->withNameFrom($this->name_source);
   119 <div class="form-group row">   120    <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label>        121    <div class="col-sm-8 col-md-9 col-lg-10">            <input id="id_1" type="number" name="name_0" class="form-control form-control-sm" />                                    </div>   124         $this->assertEquals($expected, $html);
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
 
 
 
◆ testRenderValue()
      
        
          | NumericInputTest::testRenderValue  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 127 of file NumericInputTest.php.
References Vendor\Package\$f, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), buildFactory(), and ILIAS_UI_TestBase\getDefaultRenderer().
  132         $numeric = 
$f->numeric($label)->withValue($value)->withNameFrom($this->name_source);
   138 <div class="form-group row">   139    <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label>        140    <div class="col-sm-8 col-md-9 col-lg-10">            <input id="id_1" type="number" value="10" name="name_0" class="form-control form-control-sm" />                                 </div>   143         $this->assertEquals($expected, $html);
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
 
 
 
◆ testZeroIsValidValue()
testNullValue 
Definition at line 199 of file NumericInputTest.php.
  202         $field_required = $field->withRequired(
true);
   204         $value = $field->withInput($post_data)->getContent();
   205         $this->assertTrue($value->isOk());
   206         $this->assertEquals(0, $value->value());
   208         $value = $field_required->withInput($post_data)->getContent();
   209         $this->assertTrue($value->isOK());
   210         $this->assertEquals(0, $value->value());
 
 
 
 
◆ $name_source
The documentation for this class was generated from the following file: