ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
GroupTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tests\Refinery\Custom
;
22
23
use
ILIAS\Data\Factory
as
DataFactory
;
24
use
ILIAS\Refinery\Custom\Group
as CustomGroup;
25
use
ILIAS\Refinery\Custom\Transformation
as
CustomTransformation
;
26
use
ILIAS\Refinery\Custom\Constraint
as
CustomConstraint
;
27
use
ILIAS\Tests\Refinery\TestCase
;
28
use
ilLanguage
;
29
30
class
GroupTest
extends
TestCase
31
{
32
private
CustomGroup
$group
;
33
private
DataFactory
$dataFactory
;
34
private
ilLanguage
$language
;
35
36
protected
function
setUp
(): void
37
{
38
$this->dataFactory =
new
DataFactory
();
39
$this->
language
= $this->getMockBuilder(ilLanguage::class)
40
->disableOriginalConstructor()
41
->getMock();
42
43
$this->group =
new
CustomGroup($this->dataFactory, $this->
language
);
44
}
45
46
public
function
testCustomConstraint
(): void
47
{
48
$instance = $this->group->constraint(
static
function
():
void
{
49
},
'some error'
);
50
$this->assertInstanceOf(CustomConstraint::class, $instance);
51
}
52
53
public
function
testCustomTransformation
(): void
54
{
55
$instance = $this->group->transformation(
static
function
():
void
{
56
});
57
$this->assertInstanceOf(CustomTransformation::class, $instance);
58
}
59
}
ILIAS\Tests\Refinery\Custom\GroupTest\testCustomConstraint
testCustomConstraint()
Definition:
GroupTest.php:46
ilLanguage
ILIAS\Tests\Refinery\Custom\GroupTest\$language
ilLanguage $language
Definition:
GroupTest.php:34
TestCase
ILIAS\Refinery\Custom\Group
Definition:
Group.php:28
Constraint
ILIAS\Tests\Refinery\TestCase
Definition:
TestCase.php:52
ILIAS\Tests\Refinery\Custom\GroupTest\$dataFactory
DataFactory $dataFactory
Definition:
GroupTest.php:33
Factory
ILIAS\Tests\Refinery\Custom
Definition:
GroupTest.php:21
Transformation
ILIAS\Tests\Refinery\Custom\GroupTest\setUp
setUp()
Definition:
GroupTest.php:36
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
Definition:
language.php:7
ILIAS\Tests\Refinery\Custom\GroupTest
Definition:
GroupTest.php:30
ILIAS\Tests\Refinery\Custom\GroupTest\$group
CustomGroup $group
Definition:
GroupTest.php:32
ILIAS\Tests\Refinery\Custom\GroupTest\testCustomTransformation
testCustomTransformation()
Definition:
GroupTest.php:53
tests
Refinery
Custom
GroupTest.php
Generated on Wed Sep 10 2025 14:12:12 for ILIAS by
1.8.13 (using
Doxyfile
)