ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
FormFactoryTest Class Reference
+ Inheritance diagram for FormFactoryTest:
+ Collaboration diagram for FormFactoryTest:

Public Member Functions

 buildFactory ()
 
 testImplementsFactoryInterface ()
 
- Public Member Functions inherited from AbstractFactoryTest
 buildFactoryReflection ()
 
 getMethodsProvider ()
 
 setUp ()
 
 testProperNamespace ()
 
 testProperName ()
 
 testCheckYamlExtraction (ReflectionMethod $method_reflection, string $name)
 Tests whether the YAML Kitchen Sink info can be parsed. More...
 
 testReturnType (ReflectionMethod $method_reflection, string $name)
 Tests whether the method either returns a factory or a component. More...
 
 testFactoryMethodNameCompatibleDocstring (ReflectionMethod $method_reflection, string $name)
 Tests whether the method name matches the return doctring? More...
 
 testMethodParams (ReflectionMethod $method_reflection, string $name)
 Tests whether methods returning factories have no parameters. More...
 
 testKitchensinkInfoDescription (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoRivals (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoBackground (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoFeatureWiki (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoJavaScript (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoRules (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 testKitchensinkInfoContext (ReflectionMethod $method_reflection, string $name)
 getMethodsProvider More...
 
 kitchensinkInfoSettingsMergedWithDefaults (string $name)
 

Data Fields

array $kitchensink_info_settings
 
array 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)
 
 getRegexFactoryNamespace ()
 

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.

Referenced by testImplementsFactoryInterface().

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  );
52  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes commonalities between all inputs.
Definition: Input.php:46
+ Here is the caller graph for this function:

◆ testImplementsFactoryInterface()

FormFactoryTest::testImplementsFactoryInterface ( )

Definition at line 54 of file FormFactoryTest.php.

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

54  : void
55  {
56  $f = $this->buildFactory();
57 
58  $form = $f->standard("#", []);
59  $this->assertInstanceOf(Form\Form::class, $form);
60  $this->assertInstanceOf(Form\Standard::class, $form);
61  }
This describes commonalities between all forms.
Definition: Form.php:32
+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

array 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: