ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tests\Refinery\Custom\GroupTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\Custom\GroupTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\Custom\GroupTest:

Public Member Functions

 testCustomConstraint ()
 
 testCustomTransformation ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

CustomGroup $group
 
DataFactory $dataFactory
 
Language $language
 

Detailed Description

Definition at line 30 of file GroupTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Refinery\Custom\GroupTest::setUp ( )
protected

Definition at line 36 of file GroupTest.php.

36 : void
37 {
38 $this->dataFactory = new DataFactory();
39 $this->language = $this->getMockBuilder(Language::class)
40 ->disableOriginalConstructor()
41 ->getMock();
42
43 $this->group = new CustomGroup($this->dataFactory, $this->language);
44 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

◆ testCustomConstraint()

ILIAS\Tests\Refinery\Custom\GroupTest::testCustomConstraint ( )

Definition at line 46 of file GroupTest.php.

46 : void
47 {
48 $instance = $this->group->constraint(static function (): void {
49 }, 'some error');
50 $this->assertInstanceOf(CustomConstraint::class, $instance);
51 }

◆ testCustomTransformation()

ILIAS\Tests\Refinery\Custom\GroupTest::testCustomTransformation ( )

Definition at line 53 of file GroupTest.php.

53 : void
54 {
55 $instance = $this->group->transformation(static function (): void {
56 });
57 $this->assertInstanceOf(CustomTransformation::class, $instance);
58 }

Field Documentation

◆ $dataFactory

DataFactory ILIAS\Tests\Refinery\Custom\GroupTest::$dataFactory
private

Definition at line 33 of file GroupTest.php.

◆ $group

CustomGroup ILIAS\Tests\Refinery\Custom\GroupTest::$group
private

Definition at line 32 of file GroupTest.php.

◆ $language

Language ILIAS\Tests\Refinery\Custom\GroupTest::$language
private

Definition at line 34 of file GroupTest.php.


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