ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ($method_reflection, $name)
 Tests whether the YAML Kitchen Sink info can be parsed. More...
 
 test_return_type ($method_reflection, $name)
 Tests whether the method either returns a factory or a component. More...
 
 test_factory_method_name_compatible_docstring ($method_reflection, $name)
 Tests whether the method name matches the. More...
 
 test_method_params ($method_reflection, $name)
 Tests whether methods returning factories have no parameters. More...
 
 test_kitchensink_info_description ($method_reflection, $name)
 methods_provider More...
 
 test_kitchensink_info_rivals ($method_reflection, $name)
 methods_provider More...
 
 test_kitchensink_info_background ($method_reflection, $name)
 methods_provider More...
 
 test_kitchensink_info_featurewiki ($method_reflection, $name)
 methods_provider More...
 
 test_kitchensink_info_javascript ($method_reflection, $name)
 methods_provider More...
 
 test_kitchensink_info_rules ($method_reflection, $name)
 methods_provider More...
 
 test_kitchensink_info_context ($method_reflection, $name)
 methods_provider More...
 
 kitchensink_info_settings_merged_with_defaults ($name)
 

Data Fields

 $kitchensink_info_settings
 
 $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 ($docstring_data)
 
 returnsComponent ($docstring_data)
 
 isFactoryName ($name)
 
 get_regex_factory_namespace ()
 

Detailed Description

Definition at line 11 of file FormFactoryTest.php.

Member Function Documentation

◆ buildFactory()

FormFactoryTest::buildFactory ( )
final

Definition at line 21 of file FormFactoryTest.php.

Referenced by test_implements_factory_interface().

22  {
23  $df = new Data\Factory();
24  return new \ILIAS\UI\Implementation\Component\Input\Container\Form\Factory(
25  new \ILIAS\UI\Implementation\Component\Input\Field\Factory(
26  new SignalGenerator(),
27  $df,
28  new Validation\Factory($df, $this->createMock(\ilLanguage::class)),
30  )
31  );
32  }
Class Factory.
A transformation is a function from one datatype to another.
Class BaseForm.
Builds data types.
Definition: Factory.php:14
+ Here is the caller graph for this function:

◆ test_implements_factory_interface()

FormFactoryTest::test_implements_factory_interface ( )

Definition at line 35 of file FormFactoryTest.php.

References $f, $form, and buildFactory().

36  {
37  $f = $this->buildFactory();
38 
39  $form = $f->standard("#", []);
40  $this->assertInstanceOf(Form\Form::class, $form);
41  $this->assertInstanceOf(Form\Standard::class, $form);
42  }
This describes commonalities between all forms.
Definition: Form.php:15
if(isset($_POST['submit'])) $form
+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

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

Definition at line 18 of file FormFactoryTest.php.

◆ $kitchensink_info_settings

FormFactoryTest::$kitchensink_info_settings
Initial value:
= array(
"standard" => array(
"context" => false,
),
)

Definition at line 13 of file FormFactoryTest.php.


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