ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FieldFactoryTest Class Reference
+ Inheritance diagram for FieldFactoryTest:
+ Collaboration diagram for FieldFactoryTest:

Public Member Functions

 buildFactory ()
 
 testImplementsFactoryInterfaceForText ()
 
 testImplementsFactoryInterfaceForNumeric ()
 
 testImplementsFactoryInterfaceForSection ()
 
 testImplementsFactoryInterfaceForGroup ()
 
 testImplementsFactoryInterfaceForCheckbox ()
 
 testImplementsFactoryInterfaceForTag ()
 
 testImplementsFactoryInterfaceForPassword ()
 
 testImplementsFactoryInterfaceForSelect ()
 
 testImplementsFactoryInterfaceForTextarea ()
 
 testImplementsFactoryInterfaceForRadio ()
 
 testImplementsFactoryInterfaceForMultiselect ()
 
 testImplementsFactoryInterfaceForDatetime ()
 
 testImplementsFactoryInterfaceForDuration ()
 
 testImplementsFactoryNoByLine ()
 
- 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 numeric
 
static string $factory_title = 'ILIAS\\UI\\Component\\Input\\Field\\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 FieldFactoryTest.php.

Member Function Documentation

◆ buildFactory()

FieldFactoryTest::buildFactory ( )
final

◆ testImplementsFactoryInterfaceForCheckbox()

FieldFactoryTest::testImplementsFactoryInterfaceForCheckbox ( )

Definition at line 120 of file FieldFactoryTest.php.

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

120  : void
121  {
122  $f = $this->buildFactory();
123 
124  $input = $f->checkbox("label", "byline");
125  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
126  $this->assertInstanceOf(Field\Checkbox::class, $input);
127  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForDatetime()

FieldFactoryTest::testImplementsFactoryInterfaceForDatetime ( )

Definition at line 183 of file FieldFactoryTest.php.

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

183  : void
184  {
185  $f = $this->buildFactory();
186 
187  $input = $f->datetime("label", "byline");
188  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
189  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForDuration()

FieldFactoryTest::testImplementsFactoryInterfaceForDuration ( )

Definition at line 191 of file FieldFactoryTest.php.

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

191  : void
192  {
193  $f = $this->buildFactory();
194 
195  $input = $f->duration("label", "byline");
196  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
197  $this->assertInstanceOf(Field\Group::class, $input);
198  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForGroup()

FieldFactoryTest::testImplementsFactoryInterfaceForGroup ( )

Definition at line 111 of file FieldFactoryTest.php.

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

111  : void
112  {
113  $f = $this->buildFactory();
114 
115  $input = $f->group([]);
116  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
117  $this->assertInstanceOf(Field\Group::class, $input);
118  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForMultiselect()

FieldFactoryTest::testImplementsFactoryInterfaceForMultiselect ( )

Definition at line 174 of file FieldFactoryTest.php.

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

174  : void
175  {
176  $f = $this->buildFactory();
177 
178  $input = $f->multiSelect("label", [], "byline");
179  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
180  $this->assertInstanceOf(Field\MultiSelect::class, $input);
181  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForNumeric()

FieldFactoryTest::testImplementsFactoryInterfaceForNumeric ( )

Definition at line 92 of file FieldFactoryTest.php.

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

92  : void
93  {
94  $f = $this->buildFactory();
95 
96  $input = $f->numeric("label", "byline");
97  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
98  $this->assertInstanceOf(Field\Numeric::class, $input);
99  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForPassword()

FieldFactoryTest::testImplementsFactoryInterfaceForPassword ( )

Definition at line 138 of file FieldFactoryTest.php.

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

138  : void
139  {
140  $f = $this->buildFactory();
141 
142  $input = $f->password("label", "byline");
143  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
144  $this->assertInstanceOf(Field\Password::class, $input);
145  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForRadio()

FieldFactoryTest::testImplementsFactoryInterfaceForRadio ( )

Definition at line 165 of file FieldFactoryTest.php.

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

165  : void
166  {
167  $f = $this->buildFactory();
168 
169  $input = $f->radio("label", "byline");
170  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
171  $this->assertInstanceOf(Field\Radio::class, $input);
172  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForSection()

FieldFactoryTest::testImplementsFactoryInterfaceForSection ( )

Definition at line 101 of file FieldFactoryTest.php.

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

101  : void
102  {
103  $f = $this->buildFactory();
104 
105  $input = $f->section([], "label", "byline");
106  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
107  $this->assertInstanceOf(Field\Group::class, $input);
108  $this->assertInstanceOf(Field\Section::class, $input);
109  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForSelect()

FieldFactoryTest::testImplementsFactoryInterfaceForSelect ( )

Definition at line 147 of file FieldFactoryTest.php.

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

147  : void
148  {
149  $f = $this->buildFactory();
150 
151  $input = $f->select("label", [], "byline");
152  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
153  $this->assertInstanceOf(Field\Select::class, $input);
154  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForTag()

FieldFactoryTest::testImplementsFactoryInterfaceForTag ( )

Definition at line 129 of file FieldFactoryTest.php.

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

129  : void
130  {
131  $f = $this->buildFactory();
132 
133  $input = $f->tag("label", [], "byline");
134  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
135  $this->assertInstanceOf(Field\Tag::class, $input);
136  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForText()

FieldFactoryTest::testImplementsFactoryInterfaceForText ( )

Definition at line 83 of file FieldFactoryTest.php.

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

83  : void
84  {
85  $f = $this->buildFactory();
86 
87  $input = $f->text("label", "byline");
88  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
89  $this->assertInstanceOf(Field\Text::class, $input);
90  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForTextarea()

FieldFactoryTest::testImplementsFactoryInterfaceForTextarea ( )

Definition at line 156 of file FieldFactoryTest.php.

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

156  : void
157  {
158  $f = $this->buildFactory();
159 
160  $input = $f->textarea("label", "byline");
161  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
162  $this->assertInstanceOf(Field\Textarea::class, $input);
163  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

◆ testImplementsFactoryNoByLine()

FieldFactoryTest::testImplementsFactoryNoByLine ( )

Definition at line 200 of file FieldFactoryTest.php.

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

200  : void
201  {
202  $f = $this->buildFactory();
203 
204  $input = $f->text("label");
205  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
206  $this->assertInstanceOf(Field\Text::class, $input);
207 
208  $input = $f->numeric("label");
209  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
210  $this->assertInstanceOf(Field\Numeric::class, $input);
211 
212  $input = $f->section([], "label");
213  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
214  $this->assertInstanceOf(Field\Group::class, $input);
215  $this->assertInstanceOf(Field\Section::class, $input);
216 
217  $input = $f->checkbox("label");
218  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
219  $this->assertInstanceOf(Field\Checkbox::class, $input);
220 
221  $input = $f->tag("label", []);
222  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
223  $this->assertInstanceOf(Field\Tag::class, $input);
224 
225  $input = $f->password("label");
226  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
227  $this->assertInstanceOf(Field\Password::class, $input);
228 
229  $input = $f->select("label", []);
230  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
231  $this->assertInstanceOf(Field\Select::class, $input);
232 
233  $input = $f->textarea("label");
234  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
235  $this->assertInstanceOf(Field\Textarea::class, $input);
236 
237  $input = $f->radio("label");
238  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
239  $this->assertInstanceOf(Field\Radio::class, $input);
240 
241  $input = $f->multiSelect("label", []);
242  $this->assertInstanceOf(\ILIAS\UI\Component\Input\Container\Form\FormInput::class, $input);
243  $this->assertInstanceOf(Field\MultiSelect::class, $input);
244  }
Interface Observer Contains several chained tasks and infos about them.
+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

string FieldFactoryTest::$factory_title = 'ILIAS\\UI\\Component\\Input\\Field\\Factory'
static

Definition at line 67 of file FieldFactoryTest.php.

◆ $kitchensink_info_settings

array FieldFactoryTest::$kitchensink_info_settings
static
Initial value:
= [
"text" => [
"context" => false

Definition at line 31 of file FieldFactoryTest.php.

◆ numeric

array FieldFactoryTest::numeric
static

Definition at line 35 of file FieldFactoryTest.php.


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