ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Defines tests every SHOULD pass UI-factory. More...
Public Member Functions | |
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) | |
methods_provider More... | |
test_kitchensink_info_background ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_featurewiki ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_javascript ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_rules ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_context ($method_reflection, $name) | |
methods_provider More... | |
kitchensink_info_settings_merged_with_defaults ($name) | |
Data Fields | |
const | COMPONENT = 1 |
const | FACTORY = 2 |
Protected Member Functions | |
returnsFactory ($docstring_data) | |
returnsComponent ($docstring_data) | |
isFactoryName ($name) | |
get_regex_factory_namespace () | |
Private Attributes | |
$kitchensink_info_settings_default | |
$description_categories | |
$rules_categories | |
Defines tests every SHOULD pass UI-factory.
Checks as much rules as possible from the 'Interfaces to Factories' part of the UI framework rules.
TODO: This test heavily relies on data providers and dependencies. PHPUnit does not support dependencies per provided data set via , therefore the test express the dependencies explicitly by calling subsequent testing methods. These leads to test methods being executed to often.
Definition at line 17 of file AbstractFactoryTest.php.
|
final |
Definition at line 68 of file AbstractFactoryTest.php.
Referenced by methods_provider(), and setUp().
|
protected |
Definition at line 181 of file AbstractFactoryTest.php.
Referenced by test_factory_method_name_compatible_docstring().
|
finalprotected |
Definition at line 64 of file AbstractFactoryTest.php.
Referenced by returnsFactory(), and test_proper_name().
|
final |
Definition at line 306 of file AbstractFactoryTest.php.
References $kitchensink_info_settings_default.
Referenced by test_kitchensink_info_background(), test_kitchensink_info_context(), test_kitchensink_info_description(), test_kitchensink_info_featurewiki(), test_kitchensink_info_javascript(), and test_kitchensink_info_rules().
|
final |
Definition at line 72 of file AbstractFactoryTest.php.
References array, and buildFactoryReflection().
|
finalprotected |
Definition at line 59 of file AbstractFactoryTest.php.
Referenced by test_return_type().
|
finalprotected |
Definition at line 55 of file AbstractFactoryTest.php.
References isFactoryName().
Referenced by test_factory_method_name_compatible_docstring(), test_kitchensink_info_context(), test_method_params(), and test_return_type().
AbstractFactoryTest::setUp | ( | ) |
Definition at line 81 of file AbstractFactoryTest.php.
References buildFactoryReflection().
|
final |
Tests whether the YAML Kitchen Sink info can be parsed.
methods_provider
Definition at line 109 of file AbstractFactoryTest.php.
Referenced by test_factory_method_name_compatible_docstring(), test_kitchensink_info_background(), test_kitchensink_info_context(), test_kitchensink_info_description(), test_kitchensink_info_featurewiki(), test_kitchensink_info_javascript(), test_kitchensink_info_rules(), test_method_params(), and test_return_type().
|
final |
Tests whether the method name matches the.
methods_provider
Definition at line 149 of file AbstractFactoryTest.php.
References get_regex_factory_namespace(), returnsFactory(), test_check_yaml_extraction(), and test_return_type().
|
final |
methods_provider
Definition at line 227 of file AbstractFactoryTest.php.
References kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 289 of file AbstractFactoryTest.php.
References kitchensink_info_settings_merged_with_defaults(), returnsFactory(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 204 of file AbstractFactoryTest.php.
References kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 240 of file AbstractFactoryTest.php.
References kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 253 of file AbstractFactoryTest.php.
References kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 266 of file AbstractFactoryTest.php.
References kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
Tests whether methods returning factories have no parameters.
methods_provider
Definition at line 190 of file AbstractFactoryTest.php.
References returnsFactory(), and test_check_yaml_extraction().
AbstractFactoryTest::test_proper_name | ( | ) |
Definition at line 95 of file AbstractFactoryTest.php.
References isFactoryName().
AbstractFactoryTest::test_proper_namespace | ( | ) |
Definition at line 86 of file AbstractFactoryTest.php.
|
final |
Tests whether the method either returns a factory or a component.
methods_provider
Definition at line 130 of file AbstractFactoryTest.php.
References returnsComponent(), returnsFactory(), and test_check_yaml_extraction().
Referenced by test_factory_method_name_compatible_docstring().
|
private |
Definition at line 48 of file AbstractFactoryTest.php.
|
private |
Definition at line 28 of file AbstractFactoryTest.php.
Referenced by kitchensink_info_settings_merged_with_defaults().
|
private |
Definition at line 51 of file AbstractFactoryTest.php.
const AbstractFactoryTest::COMPONENT = 1 |
Definition at line 19 of file AbstractFactoryTest.php.
const AbstractFactoryTest::FACTORY = 2 |
Definition at line 20 of file AbstractFactoryTest.php.