1 | <?php |
||
20 | final class ThemeConfigurationTest extends \PHPUnit_Framework_TestCase |
||
21 | { |
||
22 | use ConfigurationTestCaseTrait; |
||
23 | |||
24 | /** |
||
25 | * @test |
||
26 | */ |
||
27 | public function it_requires_only_name(): void |
||
37 | |||
38 | /** |
||
39 | * @test |
||
40 | */ |
||
41 | public function its_name_is_required_and_cannot_be_empty(): void |
||
57 | |||
58 | /** |
||
59 | * @test |
||
60 | */ |
||
61 | public function its_title_is_optional_but_cannot_be_empty(): void |
||
77 | |||
78 | /** |
||
79 | * @test |
||
80 | */ |
||
81 | public function its_description_is_optional_but_cannot_be_empty(): void |
||
97 | |||
98 | /** |
||
99 | * @test |
||
100 | */ |
||
101 | public function its_path_is_optional_but_cannot_be_empty(): void |
||
117 | |||
118 | /** |
||
119 | * @test |
||
120 | */ |
||
121 | public function its_authors_are_optional(): void |
||
130 | |||
131 | /** |
||
132 | * @test |
||
133 | */ |
||
134 | public function its_author_can_have_only_name_email_homepage_and_role_properties(): void |
||
171 | |||
172 | /** |
||
173 | * @test |
||
174 | */ |
||
175 | public function its_author_must_have_at_least_one_property(): void |
||
185 | |||
186 | /** |
||
187 | * @test |
||
188 | */ |
||
189 | public function its_authors_replaces_other_authors_defined_elsewhere(): void |
||
200 | |||
201 | /** |
||
202 | * @test |
||
203 | */ |
||
204 | public function it_ignores_undefined_root_level_fields(): void |
||
212 | |||
213 | /** |
||
214 | * @test |
||
215 | */ |
||
216 | public function its_parents_are_optional_but_has_to_have_at_least_one_element(): void |
||
232 | |||
233 | /** |
||
234 | * @test |
||
235 | */ |
||
236 | public function its_parent_is_strings(): void |
||
245 | |||
246 | /** |
||
247 | * @test |
||
248 | */ |
||
249 | public function its_parent_cannot_be_empty(): void |
||
258 | |||
259 | /** |
||
260 | * @test |
||
261 | */ |
||
262 | public function its_parents_replaces_other_parents_defined_elsewhere(): void |
||
273 | |||
274 | /** |
||
275 | * @test |
||
276 | */ |
||
277 | public function its_screenshots_are_strings(): void |
||
286 | |||
287 | /** |
||
288 | * @test |
||
289 | */ |
||
290 | public function its_screenshots_are_optional(): void |
||
299 | |||
300 | /** |
||
301 | * @test |
||
302 | */ |
||
303 | public function its_screenshots_must_have_at_least_one_element(): void |
||
312 | |||
313 | /** |
||
314 | * @test |
||
315 | */ |
||
316 | public function its_screenshots_cannot_be_empty(): void |
||
325 | |||
326 | /** |
||
327 | * @test |
||
328 | */ |
||
329 | public function its_screenshots_replaces_other_screenshots_defined_elsewhere(): void |
||
340 | |||
341 | /** |
||
342 | * @test |
||
343 | */ |
||
344 | public function its_screenshots_are_an_array(): void |
||
353 | |||
354 | /** |
||
355 | * @test |
||
356 | */ |
||
357 | public function its_screenshots_must_have_a_path(): void |
||
366 | |||
367 | /** |
||
368 | * @test |
||
369 | */ |
||
370 | public function its_screenshots_have_optional_title_and_description(): void |
||
383 | |||
384 | /** |
||
385 | * {@inheritdoc} |
||
386 | */ |
||
387 | protected function getConfiguration(): ConfigurationInterface |
||
391 | } |
||
392 |