function DeprecatedCleanupTest::testDeprecatedCleanFunctions
@expectedDeprecation simpletest_clean_environment is 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.. See https://www.drupal.org/node/3076634 @expectedDeprecation simpletest_clean_database is 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. See https://www.drupal.org/node/3076634 @expectedDeprecation simpletest_clean_temporary_directories is 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. See https://www.drupal.org/node/3076634 @expectedDeprecation simpletest_clean_results_table is 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. See https://www.drupal.org/node/3076634
File
-
core/
modules/ simpletest/ tests/ src/ Kernel/ DeprecatedCleanupTest.php, line 35
Class
- DeprecatedCleanupTest
- Verify deprecation errors for the cleanup functions.
Namespace
Drupal\Tests\simpletest\KernelCode
public function testDeprecatedCleanFunctions() {
$this->assertNull(simpletest_clean_environment());
$this->assertNull(simpletest_clean_database());
$this->assertNull(simpletest_clean_temporary_directories());
$this->assertEquals(0, simpletest_clean_results_table());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.