public function PathautoTestHelperTrait::deleteAllAliases in Pathauto 8
6 calls to PathautoTestHelperTrait::deleteAllAliases()
- PathautoBulkUpdateTest::testBulkUpdate in tests/
src/ Functional/ PathautoBulkUpdateTest.php - PathautoKernelTest::testUpdateActions in tests/
src/ Kernel/ PathautoKernelTest.php - Test the different update actions in \Drupal::service('pathauto.generator')->createEntityAlias().
- PathautoLocaleTest::testLanguagePatterns in tests/
src/ FunctionalJavascript/ PathautoLocaleTest.php - Test that patterns work on multilingual content.
- PathautoMassDeleteTest::generateAliases in tests/
src/ Functional/ PathautoMassDeleteTest.php - Helper function to generate aliases.
- PathautoNodeWebTest::testNodeOperations in tests/
src/ Functional/ PathautoNodeWebTest.php - Test node operations.
File
- tests/
src/ Functional/ PathautoTestHelperTrait.php, line 139
Class
- PathautoTestHelperTrait
- Helper test class with some added functions for testing.
Namespace
Drupal\Tests\pathauto\FunctionalCode
public function deleteAllAliases() {
\Drupal::service('pathauto.alias_storage_helper')
->deleteAll();
\Drupal::service('path_alias.manager')
->cacheClear();
}