ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FormFactoryTest Class Reference
+ Inheritance diagram for FormFactoryTest:
+ Collaboration diagram for FormFactoryTest:

Public Member Functions

 buildFactory ()
 
 testImplementsFactoryInterface ()
 
- Public Member Functions inherited from AbstractFactoryTestCase
 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)
 
 testKitchensinkInfoRivals (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoBackground (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoFeatureWiki (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoJavaScript (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoRules (ReflectionMethod $method_reflection, string $name)
 
 testKitchensinkInfoContext (ReflectionMethod $method_reflection, string $name)
 
 kitchensinkInfoSettingsMergedWithDefaults (string $name)
 

Static Public Attributes

static array $kitchensink_info_settings
 
static string $factory_title = 'ILIAS\\UI\\Component\\Input\\Container\\Form\\Factory'
 
- Static Public Attributes inherited from AbstractFactoryTestCase
static string $factory_title = ''
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractFactoryTestCase
static buildFactoryReflection ()
 
static getMethodsProvider ()
 
- Data Fields inherited from AbstractFactoryTestCase
const COMPONENT = 1
 
const FACTORY = 2
 
- Protected Member Functions inherited from AbstractFactoryTestCase
 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.

39 : I\Container\Form\Factory
40 {
41 $df = new Data\Factory();
42 $signal_generator = new SignalGenerator();
43 $language = $this->createMock(ILIAS\Language\Language::class);
44 return new I\Container\Form\Factory(
45 new I\Field\Factory(
46 $this->createMock(\ILIAS\UI\Implementation\Component\Input\Field\Node\Factory::class),
47 $this->createMock(\ILIAS\UI\Implementation\Component\Input\UploadLimitResolver::class),
48 $signal_generator,
49 $df,
50 new Factory($df, $language),
51 $language
52 ),
53 $signal_generator
54 );
55 }
Builds data types.
Definition: Factory.php:36
This describes commonalities between all inputs.
Definition: Input.php:47
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

Referenced by testImplementsFactoryInterface().

+ Here is the caller graph for this function:

◆ testImplementsFactoryInterface()

FormFactoryTest::testImplementsFactoryInterface ( )

Definition at line 57 of file FormFactoryTest.php.

57 : void
58 {
59 $f = $this->buildFactory();
60
61 $form = $f->standard("#", []);
62 $this->assertInstanceOf(Form\Form::class, $form);
63 $this->assertInstanceOf(Form\Standard::class, $form);
64 }
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'
static

Definition at line 37 of file FormFactoryTest.php.

◆ $kitchensink_info_settings

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

Definition at line 31 of file FormFactoryTest.php.


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