You are here

Deprecated in SimpleTest 8.3

Primary tabs

Examples: "before Drupal 9", "in Drupal 8.4"
Namesort descending Location Type Deprecation Direct uses Namespaced uses Overrides Use statements
AssertContentTrait src/AssertContentTrait.php trait in Drupal 8.6.0, to be removed before Drupal 9.0.0. Use Drupal\KernelTests\AssertContentTrait instead.
AssertHelperTrait src/AssertHelperTrait.php trait in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use Drupal\Tests\AssertHelperTrait instead.
BlockCreationTrait src/BlockCreationTrait.php trait in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\block\Traits\BlockCreationTrait instead.
BrowserTestBase src/BrowserTestBase.php class in Drupal 8.1.x, will be removed before Drupal 9.0. Use Drupal\Tests\BrowserTestBase instead.
ContentTypeCreationTrait src/ContentTypeCreationTrait.php trait in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\node\Traits\ContentTypeCreationTrait instead.
hook_simpletest_alter ./simpletest.api.php function in Drupal 8.6.x and will be removed before Drupal 9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.
hook_test_finished ./simpletest.api.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.
hook_test_group_finished ./simpletest.api.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.
hook_test_group_started ./simpletest.api.php function in drupal:8.8.0 and is removed from drupal:9.0.0. Convert your test to a PHPUnit-based one and implement test listeners.
InstallerTestBase src/InstallerTestBase.php class in Drupal 8.6.0 and will be removed before Drupal 9.0.0. Use \Drupal\FunctionalTests\Installer\InstallerTestBase. See https://www.drupal.org/node/2988752
KernelTestBase src/KernelTestBase.php class in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use \Drupal\KernelTests\KernelTestBase instead. 1 1
MissingGroupException src/Exception/MissingGroupException.php class in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\Exception\MissingGroupException instead.
NodeCreationTrait src/NodeCreationTrait.php trait in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use \Drupal\Tests\node\Traits\NodeCreationTrait instead.
RandomGeneratorTrait src/RandomGeneratorTrait.php trait in Drupal 8.1.1, will be removed before Drupal 9.0.0. Use \Drupal\Tests\RandomGeneratorTrait instead.
RouteProvider src/RouteProvider.php class in 8.6.0 for removal before 9.0.0. Use Drupal\KernelTests\RouteProvider instead.
SessionTestTrait src/SessionTestTrait.php trait in Drupal 8.1.1 will be removed before 9.0.0. Use \Drupal\Tests\SessionTestTrait instead.
simpletest_classloader_register ./simpletest.module function in Drupal 8.3.x for removal before 9.0.0 release. Use \Drupal::service('test_discovery')->registerTestNamespaces() instead. 1
simpletest_clean_database ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanDatabase() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanDatabase() instead. 1
simpletest_clean_environment ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanEnvironment() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanEnvironment() instead. 1
simpletest_clean_results_table ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanResultsTable() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanResultsTable() instead. 1
simpletest_clean_temporary_directories ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Access the environment_cleaner service and call its cleanTemporaryDirectories() method, or use \Drupal\Core\Test\EnvironmentCleaner::cleanTemporaryDirectories() instead. 1
simpletest_generate_file ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\TestFileCreationTrait::generateFile() instead. 1
simpletest_insert_assert ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::insertAssert() instead.
simpletest_last_test_get ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::lastTestGet() instead.
simpletest_log_read ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::logRead() instead.
simpletest_phpunit_command ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::phpUnitCommand() instead. 1
simpletest_phpunit_configuration_filepath ./simpletest.module function in Drupal 8.4.x for removal before Drupal 9.0.0. PHPUnit test runners should change directory into core/ and then run the phpunit tool. See simpletest_phpunit_run_command() for an example. 1
simpletest_phpunit_find_testcases ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::findTestCases() instead. 1
simpletest_phpunit_run_command ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runCommand() instead. 1
simpletest_phpunit_testcase_to_row ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::convertTestCaseToSimpletestRow() instead. 1
simpletest_phpunit_xml_filepath ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::xmlLogFilepath() instead. 2
simpletest_phpunit_xml_to_rows ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\JUnitConverter::xmlToRows() instead. 1
simpletest_process_phpunit_results ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDatabase::processPhpUnitResults() instead. 1
simpletest_run_phpunit_tests ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::runTests() instead. 1
simpletest_summarize_phpunit_result ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\PhpUnitTestRunner::summarizeResults() instead. 1
simpletest_test_get_all ./simpletest.module function in Drupal 8.3.x, for removal before 9.0.0 release. Use \Drupal::service('test_discovery')->getTestClasses($extension, $types) instead. 1
TestBase src/TestBase.php class in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Instead, use one of the phpunit base test classes like Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340. 2
TestBase::insertAssert src/TestBase.php function in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use simpletest_insert_assert() instead. 1 1
TestDiscovery src/TestDiscovery.php class in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Test\TestDiscovery instead. 9
TestServiceProvider src/TestServiceProvider.php class in 8.6.0 for removal before Drupal 9.0.0. Use Drupal\KernelTests\TestServiceProvider instead.
UserCreationTrait src/UserCreationTrait.php trait in Drupal 8.4.x. Will be removed before Drupal 9.0.0. Use Drupal\Tests\user\Traits\UserCreationTrait instead.
WebAssert src/WebAssert.php class in Drupal 8.1.1 will be removed before 9.0.0. This was moved to another namespace.
WebTestBase src/WebTestBase.php class in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Instead, use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340. 13 12
_simpletest_run_tests_script_open_browser ./simpletest.module function in drupal:8.8.0 and is removed from drupal:9.0.0. This function supports the --browser option in this script. Use the --verbose option instead.

Other projects