You are here

public function PathautoTestHelperTrait::assertAliasExists in Pathauto 8

9 calls to PathautoTestHelperTrait::assertAliasExists()
PathautoBulkUpdateTest::testBulkUpdate in tests/src/Functional/PathautoBulkUpdateTest.php
PathautoEnablingEntityTypesTest::testEnablingEntityTypes in tests/src/Functional/PathautoEnablingEntityTypesTest.php
A suite of tests to verify if the feature to enable and disable the ability to define alias patterns for a given entity type works. Test with the comment module, as it is not enabled by default.
PathautoKernelTest::testPathDeleteMultiple in tests/src/Kernel/PathautoKernelTest.php
Test pathauto_path_delete_multiple().
PathautoKernelTest::testUpdateActions in tests/src/Kernel/PathautoKernelTest.php
Test the different update actions in \Drupal::service('pathauto.generator')->createEntityAlias().
PathautoLocaleTest::testLanguageAliases in tests/src/FunctionalJavascript/PathautoLocaleTest.php
Test that when an English node is updated, its old English alias is updated and its newer French alias is left intact.

... See full list

File

tests/src/Functional/PathautoTestHelperTrait.php, line 128

Class

PathautoTestHelperTrait
Helper test class with some added functions for testing.

Namespace

Drupal\Tests\pathauto\Functional

Code

public function assertAliasExists($conditions) {
  $path = $this
    ->loadPathAliasByConditions($conditions);
  $this
    ->assertNotEmpty($path, t('Alias with conditions @conditions found.', [
    '@conditions' => var_export($conditions, TRUE),
  ]));
  return $path;
}