ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 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)
 

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\UploadLimitResolver::class),
47  $signal_generator,
48  $df,
49  new Factory($df, $language),
50  $language
51  ),
52  $signal_generator
53  );
54  }
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 56 of file FormFactoryTest.php.

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

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