function GenericTest::preUninstallSteps
Same name in this branch
- 11.x core/modules/workspaces/tests/src/Functional/GenericTest.php \Drupal\Tests\workspaces\Functional\GenericTest::preUninstallSteps()
- 11.x core/modules/filter/tests/src/Functional/GenericTest.php \Drupal\Tests\filter\Functional\GenericTest::preUninstallSteps()
Same name in other branches
- 10 core/modules/workspaces/tests/src/Functional/GenericTest.php \Drupal\Tests\workspaces\Functional\GenericTest::preUninstallSteps()
- 10 core/modules/filter/tests/src/Functional/GenericTest.php \Drupal\Tests\filter\Functional\GenericTest::preUninstallSteps()
- 10 core/modules/forum/tests/src/Functional/GenericTest.php \Drupal\Tests\forum\Functional\GenericTest::preUninstallSteps()
File
-
core/
modules/ forum/ tests/ src/ Functional/ GenericTest.php, line 20
Class
- GenericTest
- Generic module test for forum.
Namespace
Drupal\Tests\forum\FunctionalCode
protected function preUninstallSteps() : void {
$storage = \Drupal::entityTypeManager()->getStorage('taxonomy_term');
$terms = $storage->loadMultiple();
$storage->delete($terms);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.