ILIAS  release_8 Revision v8.24
FormFactoryTest Class Reference
+ Inheritance diagram for FormFactoryTest:
+ Collaboration diagram for FormFactoryTest:

Public Member Functions

 buildFactory ()
 
 test_implements_factory_interface ()
 
- Public Member Functions inherited from AbstractFactoryTest
 buildFactoryReflection ()
 
 methods_provider ()
 
 setUp ()
 
 test_proper_namespace ()
 
 test_proper_name ()
 
 test_check_yaml_extraction (ReflectionMethod $method_reflection, string $name)
 Tests whether the YAML Kitchen Sink info can be parsed. More...
 
 test_return_type (ReflectionMethod $method_reflection, string $name)
 Tests whether the method either returns a factory or a component. More...
 
 test_factory_method_name_compatible_docstring (ReflectionMethod $method_reflection, string $name)
 Tests whether the method name matches the return doctring? More...
 
 test_method_params (ReflectionMethod $method_reflection, string $name)
 Tests whether methods returning factories have no parameters. More...
 
 test_kitchensink_info_description (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_rivals (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_background (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_featurewiki (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_javascript (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_rules (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_context (ReflectionMethod $method_reflection, string $name)
 @dataProvider methods_provider More...
 
 kitchensink_info_settings_merged_with_defaults (string $name)
 

Data Fields

array $kitchensink_info_settings
 
string $factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Form\\Factory'
 
- Data Fields inherited from AbstractFactoryTest
const COMPONENT = 1
 
const FACTORY = 2
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractFactoryTest
 returnsFactory (array $docstring_data)
 
 returnsComponent (array $docstring_data)
 
 isFactoryName (string $name)
 
 get_regex_factory_namespace ()
 

Detailed Description

Definition at line 29 of file FormFactoryTest.php.

Member Function Documentation

◆ buildFactory()

FormFactoryTest::buildFactory ( )
final

Definition at line 39 of file FormFactoryTest.php.

39 : 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 }
Builds data types.
Definition: Factory.php:21
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.

Referenced by test_implements_factory_interface().

+ Here is the caller graph for this function:

◆ test_implements_factory_interface()

FormFactoryTest::test_implements_factory_interface ( )

Definition at line 55 of file FormFactoryTest.php.

55 : 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 }
This describes commonalities between all forms.
Definition: Form.php:33

References Vendor\Package\$f, and buildFactory().

+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

string FormFactoryTest::$factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Form\\Factory'

Definition at line 37 of file FormFactoryTest.php.

◆ $kitchensink_info_settings

array FormFactoryTest::$kitchensink_info_settings
Initial value:
= [
"standard" => [
"context" => false,
],
]

Definition at line 31 of file FormFactoryTest.php.


The documentation for this class was generated from the following file: