ILIAS  release_8 Revision v8.24
FormFactoryTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21require_once 'tests/UI/AbstractFactoryTest.php';
22
25use ILIAS\Data;
28
30{
32 "standard" => [
33 "context" => false,
34 ],
35 ];
36
37 public string $factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Form\\Factory';
38
39 final public function buildFactory(): I\Container\Form\Factory
40 {
41 $df = new Data\Factory();
42 $language = $this->createMock(ilLanguage::class);
43 return new I\Container\Form\Factory(
44 new I\Field\Factory(
45 $this->createMock(\ILIAS\UI\Implementation\Component\Input\UploadLimitResolver::class),
46 new SignalGenerator(),
47 $df,
48 new Factory($df, $language),
49 $language
50 ),
51 new DefNamesource()
52 );
53 }
54
55 public function test_implements_factory_interface(): void
56 {
57 $f = $this->buildFactory();
58
59 $form = $f->standard("#", []);
60 $this->assertInstanceOf(Form\Form::class, $form);
61 $this->assertInstanceOf(Form\Standard::class, $form);
62 }
63}
Defines tests every SHOULD pass UI-factory.
array $kitchensink_info_settings
Builds data types.
Definition: Factory.php:21
This describes commonalities between all Containers for Inputs, such as Forms.
Definition: Container.php:32
This describes commonalities between all forms.
Definition: Form.php:33
This describes commonalities between all inputs.
Definition: Input.php:49
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.