simpletest 3.x-dev Drupal 10 deprecation details

Name and release Project type Usage count Top X project by usage Maintainers
simpletest 3.x-dev Module 2 10000 boombatower, BR0kEN, Dave Reid, Lendude
Status Next step Instructions
Fix deprecation errors found Run Rector to fix some errors Some of the errors found are covered by drupal-rector automation (thanks to Palantir.net funding), which should be used to speed up resolving them. Check out the Project Update Bot patch in the issue queue. Get the automated fix committed first and resolve the manual problems afterwards.
Filter errors
Occurrence in project Sort ascending All occurrences Affected projects Category Error
13 13 1 Drupal API, not rector covered Class [redacted] extends deprecated class Drupal​\​simpletest​\​WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. Replacement available from drupal:8.6.0.
12 246 64 PHPUnit API Call to deprecated method setMethods() of class PHPUnit​\​Framework​\​MockObject​\​MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
8 19 7 Drupal API, rector covered Call to deprecated method assertIdentical() of class Drupal​\​KernelTests​\​KernelTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertSame() instead.
7 7 1 Drupal API, not rector covered Call to method setUp() of deprecated class Drupal​\​simpletest​\​WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. Replacement available from drupal:8.6.0.
5 14 8 Drupal API, not rector covered Call to deprecated function drupal_get_module_schema(). Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. No direct replacement is provided. Testing classes could use Drupal​\​TestTools​\​Extension​\​SchemaInspector for introspection.
5 5 1 Drupal API, not rector covered Fetching class constant class of deprecated class Drupal​\​simpletest​\​TestDiscovery. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​TestDiscovery instead.
3 3 1 Drupal API, not rector covered Call to method getTestInfo() of deprecated class Drupal​\​Core​\​Test​\​TestDiscovery. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​TestDiscovery instead.
2 1658 796 Drupal API, rector covered Call to deprecated function drupal_get_path(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​Core​\​Extension​\​ExtensionPathResolver::getPath() instead.
2 1417 170 Drupal API, rector covered Call to deprecated method assertText() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use - $this->assertSession()->responseContains() for non-HTML responses, like XML or Json. - $this->assertSession()->pageTextContains() for HTML responses. Unlike the deprecated assertText(), the passed text should be HTML decoded, exactly as a human sees it in the browser.
2 18 7 PHPUnit API Call to deprecated method assertInternalType() of class PHPUnit​\​Framework​\​Assert: https://github.com/sebastianbergmann/phpunit/issues/3369
2 2 1 Drupal API, not rector covered Call to deprecated function simpletest_summarize_phpunit_result(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​PhpUnitTestRunner::summarizeResults() instead.
2 2 1 Drupal API, not rector covered Class [redacted] extends deprecated class Drupal​\​simpletest​\​TestBase. Deprecated 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. Replacement available from drupal:8.6.0. Replacement available from drupal:8.6.0.
2 2 1 Drupal API, not rector covered Call to method error() of deprecated class Drupal​\​simpletest​\​TestBase. Deprecated 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. Replacement available from drupal:8.6.0. Replacement available from drupal:8.6.0.
2 2 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_xml_to_rows(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​JUnitConverter::xmlToRows() instead.
2 2 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_xml_filepath(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​PhpUnitTestRunner::xmlLogFilepath() instead.
1 914 492 Drupal API, rector covered Call to deprecated function file_create_url(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use the appropriate method on ​\​Drupal​\​Core​\​File​\​FileUrlGeneratorInterface instead.
1 2673 333 Drupal API, rector covered Call to deprecated method drupalPostForm() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use $this->submitForm() instead.
1 32 12 Drupal API, rector covered Call to deprecated method pass() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. PHPUnit interrupts a test as soon as a test assertion fails, so there is usually no need to call this method. If a test's logic relies on this method, refactor the test.
1 227 136 Drupal API, rector covered Call to deprecated function file_url_transform_relative(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​Core​\​File​\​FileUrlGenerator::transformRelative() instead.
1 10 7 Drupal API, not rector covered Call to deprecated function debug(). Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use dump() instead.
1 1 1 Drupal API, not rector covered Parameter $test_discovery of method Drupal​\​simpletest​\​Cache​\​Context​\​TestDiscoveryCacheContext::__construct() has typehint with deprecated class Drupal​\​simpletest​\​TestDiscovery. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​TestDiscovery instead.
1 1 1 Drupal API, not rector covered Parameter $test_discovery of method Drupal​\​simpletest​\​Form​\​SimpletestTestForm::__construct() has typehint with deprecated class Drupal​\​simpletest​\​TestDiscovery. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​TestDiscovery instead.
1 1 1 Drupal API, not rector covered Call to method tearDown() of deprecated class Drupal​\​simpletest​\​WebTestBase. Deprecated 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. Replacement available from drupal:8.6.0. Replacement available from drupal:8.6.0.
1 1 1 Drupal API, not rector covered Class [redacted] extends deprecated class Drupal​\​simpletest​\​KernelTestBase. Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use Drupal​\​KernelTests​\​KernelTestBase instead.
1 1 1 Drupal API, not rector covered Call to method setUp() of deprecated class Drupal​\​simpletest​\​KernelTestBase. Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use Drupal​\​KernelTests​\​KernelTestBase instead.
1 1 1 Drupal API, not rector covered Call to method run() of deprecated class Drupal​\​simpletest​\​TestBase. Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0. Use Drupal​\​KernelTests​\​KernelTestBase instead.
1 1 1 Drupal API, not rector covered Call to method checkRequirements() of deprecated class Drupal​\​simpletest​\​TestBase. Deprecated 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. Replacement available from drupal:8.6.0. Replacement available from drupal:8.6.0.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_run_command(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​PhpUnitTestRunner::runCommand() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_clean_environment(). Deprecated 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 1 1 Drupal API, not rector covered Call to deprecated function simpletest_clean_database(). Deprecated 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 1 1 Drupal API, not rector covered Call to deprecated function simpletest_clean_temporary_directories(). Deprecated 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 1 1 Drupal API, not rector covered Call to deprecated function simpletest_clean_results_table(). Deprecated 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 1 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_configuration_filepath(). Deprecated 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 1 1 Drupal API, not rector covered Call to deprecated function simpletest_test_get_all(). Deprecated in Drupal 8.3.x, for removal before 9.0.0 release. Use Drupal::service('test_discovery')->getTestClasses($extension, $types) instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_classloader_register(). Deprecated in Drupal 8.3.x for removal before 9.0.0 release. Use Drupal::service('test_discovery')->registerTestNamespaces() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_command(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​PhpUnitTestRunner::phpUnitCommand() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_find_testcases(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​JUnitConverter::findTestCases() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_phpunit_testcase_to_row(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​JUnitConverter::convertTestCaseToSimpletestRow() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_generate_file(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Tests​\​TestFileCreationTrait::generateFile() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_process_phpunit_results(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​TestDatabase::processPhpUnitResults() instead.
1 1 1 Drupal API, not rector covered Call to deprecated function simpletest_run_phpunit_tests(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​PhpUnitTestRunner::runTests() instead.
1 1 1 PHPUnit API Call to deprecated method assertAttributeEmpty() of class PHPUnit​\​Framework​\​Assert: https://github.com/sebastianbergmann/phpunit/issues/3338
1 1 1 PHPUnit API Call to deprecated method assertAttributeNotEmpty() of class PHPUnit​\​Framework​\​Assert: https://github.com/sebastianbergmann/phpunit/issues/3338
1 1 1 Drupal API, not rector covered Instantiation of deprecated class Drupal​\​simpletest​\​TestDiscovery. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal​\​Core​\​Test​\​TestDiscovery instead.
1 1 1 Frontend API The 'drupal.simpletest' library is depending on a deprecated library. The core/jquery.once asset library is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256


Results are from dataset #142 from 2022-08-07T12:03. Report is ran by the Drupal Association regularly.