You are here

protected function PathautoTest::deleteContent in Entity Share 8.2

Helper function to delete the prepared content.

Overrides EntityShareClientFunctionalTestBase::deleteContent

1 call to PathautoTest::deleteContent()
PathautoTest::pathautoTestSetup in modules/entity_share_client/tests/src/Functional/PathautoTest.php
Helper function.

File

modules/entity_share_client/tests/src/Functional/PathautoTest.php, line 118

Class

PathautoTest
General functional test class for path field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function deleteContent() {
  parent::deleteContent();
  $pathauto_patterns = $this->entityTypeManager
    ->getStorage('pathauto_pattern')
    ->loadMultiple();
  foreach ($pathauto_patterns as $pathauto_pattern) {
    $pathauto_pattern
      ->delete();
  }
}