ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 array 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.

Referenced by testImplementsFactoryInterface().

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  }
Interface Observer Contains several chained tasks and infos about them.
Builds data types.
Definition: Factory.php:35
This describes commonalities between all inputs.
Definition: Input.php:46
+ Here is the caller graph for this function:

◆ testImplementsFactoryInterface()

FormFactoryTest::testImplementsFactoryInterface ( )

Definition at line 57 of file FormFactoryTest.php.

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

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:32
+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

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