◆ getRefinery()
ilModulesOrgUnitTypeTest::getRefinery |
( |
| ) |
|
◆ getUIFactory()
ilModulesOrgUnitTypeTest::getUIFactory |
( |
| ) |
|
Definition at line 52 of file ilModulesOrgUnitTypeTest.php.
References ilOrgUnitTypeGUI\$data_factory, 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,
79 public function input():
Component\Input\Factory
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(
96 $container_factory =
new Component\Input\Container\Factory(
98 $this->filter_factory,
99 $this->view_control_factory
102 return new Component\Input\Factory(
106 $this->control_factory,
__construct(Container $dic, ilPlugin $plugin)
language()
description: > Example for rendring a language glyph.
◆ testOrgUnitTypeGuiAMDForm()
ilModulesOrgUnitTypeTest::testOrgUnitTypeGuiAMDForm |
( |
| ) |
|
Definition at line 113 of file ilModulesOrgUnitTypeTest.php.
References ILIAS\UI\Implementation\Component\Input\$inputs.
115 $amdr1 = $this->createMock(ilAdvancedMDRecord::class);
117 ->method(
'getRecordId')
121 ->willReturn(
'title 1');
123 $amdr2 = $this->createMock(ilAdvancedMDRecord::class);
125 ->method(
'getRecordId')
129 ->willReturn(
'title 2');
131 $type = $this->createMock(ilOrgUnitType::class);
133 ->method(
'getAssignedAdvancedMDRecordIds')
139 $this->createMock(ilLanguage::class)
142 $form = $gui->mockGetAmdForm([$amdr1, $amdr2], $type);
143 $this->assertInstanceOf(StandardForm::class, $form);
145 $section = current($form->getInputs());
146 $this->assertInstanceOf(Section::class, $section);
148 $inputs = $section->getInputs();
149 $this->assertEquals(1, count(
$inputs));
The documentation for this class was generated from the following file: