3 require_once
'tests/UI/AbstractFactoryTest.php';
5 use \ILIAS\UI\Component\Input\Field;
9 use \ILIAS\Transformation;
26 "dependantGroup" => array(
41 "multiSelect" => array(
50 $df =
new Data\Factory();
51 return new \ILIAS\UI\Implementation\Component\Input\Field\Factory(
54 new Validation\
Factory($df, $this->createMock(\ilLanguage::class)),
64 $text =
$f->text(
"label",
"byline");
65 $this->assertInstanceOf(Field\Input::class,
$text);
66 $this->assertInstanceOf(Field\Text::class,
$text);
68 $text =
$f->numeric(
"label",
"byline");
69 $this->assertInstanceOf(Field\Input::class,
$text);
70 $this->assertInstanceOf(Field\Numeric::class,
$text);
72 $text =
$f->section([],
"label",
"byline");
73 $this->assertInstanceOf(Field\Input::class,
$text);
74 $this->assertInstanceOf(Field\Group::class,
$text);
75 $this->assertInstanceOf(Field\Section::class,
$text);
78 $this->assertInstanceOf(Field\Input::class,
$text);
79 $this->assertInstanceOf(Field\Group::class,
$text);
test_implements_factory_interface()
Defines tests every SHOULD pass UI-factory.
$kitchensink_info_settings