function simpletest_classloader_register
Same name in other branches
- 7.x modules/simpletest/simpletest.module \simpletest_classloader_register()
Registers test namespaces of all extensions and core test classes.
Deprecated
in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::service('test_discovery')->registerTestNamespaces() instead.
1 call to simpletest_classloader_register()
- SimpletestDeprecationTest::testDeprecatedFunctions in core/
modules/ simpletest/ tests/ src/ Kernel/ SimpletestDeprecationTest.php - @expectedDeprecation The simpletest_phpunit_configuration_filepath function is deprecated since version 8.4.x and will be removed in 9.0.0. @expectedDeprecation The simpletest_test_get_all function is deprecated in version 8.3.x and will be removed in…
File
-
core/
modules/ simpletest/ simpletest.module, line 544
Code
function simpletest_classloader_register() {
@trigger_error('The ' . __FUNCTION__ . ' function is deprecated in version 8.3.x and will be removed in 9.0.0. Use \\Drupal::service(\'test_discovery\')->registerTestNamespaces() instead.', E_USER_DEPRECATED);
\Drupal::service('test_discovery')->registerTestNamespaces();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.