You are here

protected function PathautoTest::deletePathautoPatterns in Entity Share 8.3

Helper which clears all Pathauto patterns (when they aren't needed).

1 call to PathautoTest::deletePathautoPatterns()
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 131

Class

PathautoTest
General functional test class for path field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

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