You are here

public function PathautoTestHelperTrait::assertNoAliasExists in Pathauto 8

6 calls to PathautoTestHelperTrait::assertNoAliasExists()
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().
PathautoNodeWebTest::testCustomAliasAfterAutomaticAlias in tests/src/Functional/PathautoNodeWebTest.php
Tests that nodes with an automatic alias can get a custom alias.
PathautoNodeWebTest::testCustomAliasAfterRemovingPattern in tests/src/Functional/PathautoNodeWebTest.php
Tests setting custom alias for nodes after removing pattern.
PathautoNodeWebTest::testNodeEditing in tests/src/Functional/PathautoNodeWebTest.php
Tests editing nodes with different settings.

... See full list

File

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

Class

PathautoTestHelperTrait
Helper test class with some added functions for testing.

Namespace

Drupal\Tests\pathauto\Functional

Code

public function assertNoAliasExists($conditions) {
  $alias = $this
    ->loadPathAliasByConditions($conditions);
  $this
    ->assertEmpty($alias, t('Alias with conditions @conditions not found.', [
    '@conditions' => var_export($conditions, TRUE),
  ]));
}