ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
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.

42 : CharacteristicValueFactory
43 {
44 return new CharacteristicValueFactory();
45 }

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

+ Here is the caller graph for this function:

◆ getInvalidTextItemsMocks()

CharacteristicValueTest::getInvalidTextItemsMocks ( )
protected

Definition at line 56 of file CharacteristicValueTest.php.

56 : array
57 {
58 return [
59 ['' => 'item'],
60 ['label' => ''],
61 []
62 ];
63 }

Referenced by CharacteristicValueTextTest\test_validation().

+ Here is the caller graph for this function:

◆ getTextItemsMock()

CharacteristicValueTest::getTextItemsMock ( )
protected

Definition at line 47 of file CharacteristicValueTest.php.

47 : array
48 {
49 return [
50 'label1' => 'item1',
51 'label2' => 'item2',
52 'label3' => 'item3'
53 ];
54 }

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

+ Here is the caller graph for this function:

◆ test_interfaces()

CharacteristicValueTest::test_interfaces ( )

Definition at line 27 of file CharacteristicValueTest.php.

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 }

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

+ Here is the call graph for this function:

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