ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ()
 
 test_implements_factory_no_by_line ()
 
- Public Member Functions inherited from AbstractFactoryTest
 buildFactoryReflection ()
 
 methods_provider ()
 
 setUp ()
 
 test_proper_namespace ()
 
 test_proper_name ()
 
 test_check_yaml_extraction ($method_reflection, $name)
 Tests whether the YAML Kitchen Sink info can be parsed. More...
 
 test_return_type ($method_reflection, $name)
 Tests whether the method either returns a factory or a component. More...
 
 test_factory_method_name_compatible_docstring ($method_reflection, $name)
 Tests whether the method name matches the. More...
 
 test_method_params ($method_reflection, $name)
 Tests whether methods returning factories have no parameters. More...
 
 test_kitchensink_info_description ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_rivals ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_background ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_featurewiki ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_javascript ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_rules ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 test_kitchensink_info_context ($method_reflection, $name)
 @dataProvider methods_provider More...
 
 kitchensink_info_settings_merged_with_defaults ($name)
 

Data Fields

 $kitchensink_info_settings
 
 $factory_title = 'ILIAS\\UI\\Component\\Input\\Field\\Factory'
 
- Data Fields inherited from AbstractFactoryTest
const COMPONENT = 1
 
const FACTORY = 2
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractFactoryTest
 returnsFactory ($docstring_data)
 
 returnsComponent ($docstring_data)
 
 isFactoryName ($name)
 
 get_regex_factory_namespace ()
 

Detailed Description

Definition at line 10 of file FieldFactoryTest.php.

Member Function Documentation

◆ buildFactory()

◆ test_implements_factory_no_by_line()

FieldFactoryTest::test_implements_factory_no_by_line ( )

Definition at line 179 of file FieldFactoryTest.php.

180 {
181 $f = $this->buildFactory();
182
183 $input = $f->text("label");
184 $this->assertInstanceOf(Field\Input::class, $input);
185 $this->assertInstanceOf(Field\Text::class, $input);
186
187 $input = $f->numeric("label");
188 $this->assertInstanceOf(Field\Input::class, $input);
189 $this->assertInstanceOf(Field\Numeric::class, $input);
190
191 $input = $f->section([], "label");
192 $this->assertInstanceOf(Field\Input::class, $input);
193 $this->assertInstanceOf(Field\Group::class, $input);
194 $this->assertInstanceOf(Field\Section::class, $input);
195
196 $input = $f->checkbox("label");
197 $this->assertInstanceOf(Field\Input::class, $input);
198 $this->assertInstanceOf(Field\Checkbox::class, $input);
199
200 $input = $f->tag("label", []);
201 $this->assertInstanceOf(Field\Input::class, $input);
202 $this->assertInstanceOf(Field\Tag::class, $input);
203
204 $input = $f->password("label");
205 $this->assertInstanceOf(Field\Input::class, $input);
206 $this->assertInstanceOf(Field\Password::class, $input);
207
208 $input = $f->select("label", []);
209 $this->assertInstanceOf(Field\Input::class, $input);
210 $this->assertInstanceOf(Field\Select::class, $input);
211
212 $input = $f->textarea("label");
213 $this->assertInstanceOf(Field\Input::class, $input);
214 $this->assertInstanceOf(Field\Textarea::class, $input);
215
216 $input = $f->radio("label");
217 $this->assertInstanceOf(Field\Input::class, $input);
218 $this->assertInstanceOf(Field\Radio::class, $input);
219
220 $input = $f->multiSelect("label", []);
221 $this->assertInstanceOf(Field\Input::class, $input);
222 $this->assertInstanceOf(Field\MultiSelect::class, $input);
223 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForCheckbox()

FieldFactoryTest::testImplementsFactoryInterfaceForCheckbox ( )

Definition at line 99 of file FieldFactoryTest.php.

100 {
101 $f = $this->buildFactory();
102
103 $input = $f->checkbox("label", "byline");
104 $this->assertInstanceOf(Field\Input::class, $input);
105 $this->assertInstanceOf(Field\Checkbox::class, $input);
106 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForDatetime()

FieldFactoryTest::testImplementsFactoryInterfaceForDatetime ( )

Definition at line 162 of file FieldFactoryTest.php.

163 {
164 $f = $this->buildFactory();
165
166 $input = $f->datetime("label", "byline");
167 $this->assertInstanceOf(Field\Input::class, $input);
168 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForDuration()

FieldFactoryTest::testImplementsFactoryInterfaceForDuration ( )

Definition at line 170 of file FieldFactoryTest.php.

171 {
172 $f = $this->buildFactory();
173
174 $input = $f->duration("label", "byline");
175 $this->assertInstanceOf(Field\Input::class, $input);
176 $this->assertInstanceOf(Field\Group::class, $input);
177 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForGroup()

FieldFactoryTest::testImplementsFactoryInterfaceForGroup ( )

Definition at line 90 of file FieldFactoryTest.php.

91 {
92 $f = $this->buildFactory();
93
94 $input = $f->group([]);
95 $this->assertInstanceOf(Field\Input::class, $input);
96 $this->assertInstanceOf(Field\Group::class, $input);
97 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForMultiselect()

FieldFactoryTest::testImplementsFactoryInterfaceForMultiselect ( )

Definition at line 153 of file FieldFactoryTest.php.

154 {
155 $f = $this->buildFactory();
156
157 $input = $f->multiSelect("label", [], "byline");
158 $this->assertInstanceOf(Field\Input::class, $input);
159 $this->assertInstanceOf(Field\MultiSelect::class, $input);
160 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForNumeric()

FieldFactoryTest::testImplementsFactoryInterfaceForNumeric ( )

Definition at line 71 of file FieldFactoryTest.php.

72 {
73 $f = $this->buildFactory();
74
75 $input = $f->numeric("label", "byline");
76 $this->assertInstanceOf(Field\Input::class, $input);
77 $this->assertInstanceOf(Field\Numeric::class, $input);
78 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForPassword()

FieldFactoryTest::testImplementsFactoryInterfaceForPassword ( )

Definition at line 117 of file FieldFactoryTest.php.

118 {
119 $f = $this->buildFactory();
120
121 $input = $f->password("label", "byline");
122 $this->assertInstanceOf(Field\Input::class, $input);
123 $this->assertInstanceOf(Field\Password::class, $input);
124 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForRadio()

FieldFactoryTest::testImplementsFactoryInterfaceForRadio ( )

Definition at line 144 of file FieldFactoryTest.php.

145 {
146 $f = $this->buildFactory();
147
148 $input = $f->radio("label", "byline");
149 $this->assertInstanceOf(Field\Input::class, $input);
150 $this->assertInstanceOf(Field\Radio::class, $input);
151 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForSection()

FieldFactoryTest::testImplementsFactoryInterfaceForSection ( )

Definition at line 80 of file FieldFactoryTest.php.

81 {
82 $f = $this->buildFactory();
83
84 $input = $f->section([], "label", "byline");
85 $this->assertInstanceOf(Field\Input::class, $input);
86 $this->assertInstanceOf(Field\Group::class, $input);
87 $this->assertInstanceOf(Field\Section::class, $input);
88 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForSelect()

FieldFactoryTest::testImplementsFactoryInterfaceForSelect ( )

Definition at line 126 of file FieldFactoryTest.php.

127 {
128 $f = $this->buildFactory();
129
130 $input = $f->select("label", [], "byline");
131 $this->assertInstanceOf(Field\Input::class, $input);
132 $this->assertInstanceOf(Field\Select::class, $input);
133 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForTag()

FieldFactoryTest::testImplementsFactoryInterfaceForTag ( )

Definition at line 108 of file FieldFactoryTest.php.

109 {
110 $f = $this->buildFactory();
111
112 $input = $f->tag("label", [], "byline");
113 $this->assertInstanceOf(Field\Input::class, $input);
114 $this->assertInstanceOf(Field\Tag::class, $input);
115 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForText()

FieldFactoryTest::testImplementsFactoryInterfaceForText ( )

Definition at line 62 of file FieldFactoryTest.php.

63 {
64 $f = $this->buildFactory();
65
66 $input = $f->text("label", "byline");
67 $this->assertInstanceOf(Field\Input::class, $input);
68 $this->assertInstanceOf(Field\Text::class, $input);
69 }

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

+ Here is the call graph for this function:

◆ testImplementsFactoryInterfaceForTextarea()

FieldFactoryTest::testImplementsFactoryInterfaceForTextarea ( )

Definition at line 135 of file FieldFactoryTest.php.

136 {
137 $f = $this->buildFactory();
138
139 $input = $f->textarea("label", "byline");
140 $this->assertInstanceOf(Field\Input::class, $input);
141 $this->assertInstanceOf(Field\Textarea::class, $input);
142 }

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

+ Here is the call graph for this function:

Field Documentation

◆ $factory_title

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

Definition at line 47 of file FieldFactoryTest.php.

◆ $kitchensink_info_settings

FieldFactoryTest::$kitchensink_info_settings

Definition at line 12 of file FieldFactoryTest.php.


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