ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
CharacteristicValueTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for CharacteristicValueTest:
+ Collaboration diagram for CharacteristicValueTest:

Public Member Functions

 test_interfaces ()
 
- Public Member Functions inherited from ILIAS_UI_TestBase
 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getRefinery ()
 
 getImagePathResolver ()
 
 getDataFactory ()
 
 getDefaultRenderer (JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
 getDecoratedRenderer (Renderer $default)
 
 normalizeHTML (string $html)
 
 assertHTMLEquals (string $expected_html_as_string, string $html_as_string)
 

Protected Member Functions

 getCharacteristicValueFactory ()
 
 getTextItemsMock ()
 
 getInvalidTextItemsMocks ()
 
- Protected Member Functions inherited from ILIAS_UI_TestBase
 brutallyTrimHTML (string $html)
 A more radical version of normalizeHTML. More...
 
 brutallyTrimSignals (string $html)
 A naive replacement of all il_signal-ids with dots to ease comparisons of rendered output. More...
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 25 of file CharacteristicValueTest.php.

Member Function Documentation

◆ getCharacteristicValueFactory()

CharacteristicValueTest::getCharacteristicValueFactory ( )
protected

Definition at line 42 of file CharacteristicValueTest.php.

Referenced by CharacteristicValueTextTest\test_getItems(), test_interfaces(), CharacteristicValueTextTest\test_rendered(), and CharacteristicValueTextTest\test_validation().

42  : CharacteristicValueFactory
43  {
44  return new CharacteristicValueFactory();
45  }
+ Here is the caller graph for this function:

◆ getInvalidTextItemsMocks()

CharacteristicValueTest::getInvalidTextItemsMocks ( )
protected

Definition at line 56 of file CharacteristicValueTest.php.

Referenced by CharacteristicValueTextTest\test_validation().

56  : array
57  {
58  return [
59  ['' => 'item'],
60  ['label' => ''],
61  []
62  ];
63  }
+ Here is the caller graph for this function:

◆ getTextItemsMock()

CharacteristicValueTest::getTextItemsMock ( )
protected

Definition at line 47 of file CharacteristicValueTest.php.

Referenced by CharacteristicValueTextTest\test_getItems(), and CharacteristicValueTextTest\test_rendered().

47  : array
48  {
49  return [
50  'label1' => 'item1',
51  'label2' => 'item2',
52  'label3' => 'item3'
53  ];
54  }
+ Here is the caller graph for this function:

◆ test_interfaces()

CharacteristicValueTest::test_interfaces ( )

Definition at line 27 of file CharacteristicValueTest.php.

References Vendor\Package\$f, and getCharacteristicValueFactory().

27  : void
28  {
30 
31  $this->assertInstanceOf(
32  'ILIAS\\UI\\Component\\Listing\\CharacteristicValue\\Factory',
33  $f
34  );
35 
36  $this->assertInstanceOf(
37  'ILIAS\\UI\\Component\\Listing\\CharacteristicValue\\Text',
38  $f->text($this->getTextItemsMock())
39  );
40  }
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: