◆ getRefinery()
| ilModulesOrgUnitTypeTest::getRefinery |
( |
| ) |
|
◆ getUIFactory()
| ilModulesOrgUnitTypeTest::getUIFactory |
( |
| ) |
|
Definition at line 52 of file ilModulesOrgUnitTypeTest.php.
References ilOrgUnitTypeGUI\$refinery, mock_ilOrgUnitTypeGUI\__construct(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), and ILIAS\Repository\refinery().
54 $language = $this->createMock(ilLanguage::class);
55 $filter_factory = $this->createMock(
Component\Input\Container\
Filter\Factory::class);
58 $upload_limit_resolver = $this->createMock(
Component\Input\UploadLimitResolver::class);
61 $factory =
new class (
64 $view_control_factory,
66 $upload_limit_resolver,
71 protected $filter_factory,
72 protected $view_control_factory,
73 protected $control_factory,
74 protected $upload_limit_resolver,
81 $signal_generator =
new Component\SignalGenerator();
82 $data_factory = new \ILIAS\Data\Factory();
84 $field_factory =
new Component\Input\Field\Factory(
85 $this->upload_limit_resolver,
92 $form_factory =
new Component\Input\Container\Form\Factory(
95 $container_factory =
new Component\Input\Container\Factory(
97 $this->filter_factory,
98 $this->view_control_factory
101 return new Component\Input\Factory(
105 $this->control_factory,
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Refinery Factory $refinery
◆ testOrgUnitTypeGuiAMDForm()
| ilModulesOrgUnitTypeTest::testOrgUnitTypeGuiAMDForm |
( |
| ) |
|
Definition at line 112 of file ilModulesOrgUnitTypeTest.php.
References ILIAS\UI\Implementation\Component\Input\$inputs.
114 $amdr1 = $this->createMock(ilAdvancedMDRecord::class);
116 ->method(
'getRecordId')
120 ->willReturn(
'title 1');
122 $amdr2 = $this->createMock(ilAdvancedMDRecord::class);
124 ->method(
'getRecordId')
128 ->willReturn(
'title 2');
130 $type = $this->createMock(ilOrgUnitType::class);
132 ->method(
'getAssignedAdvancedMDRecordIds')
138 $this->createMock(ilLanguage::class)
141 $form = $gui->mockGetAmdForm([$amdr1, $amdr2], $type);
142 $this->assertInstanceOf(StandardForm::class, $form);
144 $section = current($form->getInputs());
145 $this->assertInstanceOf(Section::class, $section);
147 $inputs = $section->getInputs();
148 $this->assertEquals(1, count(
$inputs));
The documentation for this class was generated from the following file: