ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CharacteristicValueTest Class Reference
+ Inheritance diagram for CharacteristicValueTest:
+ Collaboration diagram for CharacteristicValueTest:

Public Member Functions

 testInterfaces ()
 

Protected Member Functions

 getCharacteristicValueFactory ()
 
 getTextItemsMock ()
 
 getInvalidTextItemsMocks ()
 

Detailed Description

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\testGetItems(), testInterfaces(), CharacteristicValueTextTest\testRendered(), and CharacteristicValueTextTest\testValidation().

+ 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\testValidation().

+ 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\testGetItems(), and CharacteristicValueTextTest\testRendered().

+ Here is the caller graph for this function:

◆ testInterfaces()

CharacteristicValueTest::testInterfaces ( )

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: