function GenericTest::preUninstallSteps

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

Class

GenericTest
Generic module test for workspaces.

Namespace

Drupal\Tests\workspaces\Functional

Code

protected function preUninstallSteps() : void {
    $storage = \Drupal::entityTypeManager()->getStorage('workspace');
    $workspaces = $storage->loadMultiple();
    $storage->delete($workspaces);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.