function GenericTest::preUninstallSteps

Same name in this branch
  1. 11.x core/modules/workspaces/tests/src/Functional/GenericTest.php \Drupal\Tests\workspaces\Functional\GenericTest::preUninstallSteps()
  2. 11.x core/modules/filter/tests/src/Functional/GenericTest.php \Drupal\Tests\filter\Functional\GenericTest::preUninstallSteps()
Same name in other branches
  1. 10 core/modules/workspaces/tests/src/Functional/GenericTest.php \Drupal\Tests\workspaces\Functional\GenericTest::preUninstallSteps()
  2. 10 core/modules/filter/tests/src/Functional/GenericTest.php \Drupal\Tests\filter\Functional\GenericTest::preUninstallSteps()
  3. 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\Functional

Code

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.