You are here

function simpletest_classloader_register in Drupal 8

Same name and namespace in other branches
  1. 7 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
Provides testing functionality.

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();
}