You are here

public function PathautoTestHelperTrait::assertNoEntityAlias in Pathauto 8

5 calls to PathautoTestHelperTrait::assertNoEntityAlias()
PathautoKernelTest::testPatternStatus in tests/src/Kernel/PathautoKernelTest.php
Test if aliases are (not) generated with enabled/disabled patterns.
PathautoMassDeleteTest::testDeleteAll in tests/src/Functional/PathautoMassDeleteTest.php
Tests the deletion of all the aliases.
PathautoNodeWebTest::testNodeEditing in tests/src/Functional/PathautoNodeWebTest.php
Tests editing nodes with different settings.
PathautoNodeWebTest::testNodeState in tests/src/Functional/PathautoNodeWebTest.php
@todo Merge this with existing node test methods?
PathautoUiTest::testPatternsWorkflow in tests/src/FunctionalJavascript/PathautoUiTest.php

File

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

Class

PathautoTestHelperTrait
Helper test class with some added functions for testing.

Namespace

Drupal\Tests\pathauto\Functional

Code

public function assertNoEntityAlias(EntityInterface $entity, $langcode = NULL) {

  // By default, use the entity language.
  if (!$langcode) {
    $langcode = $entity
      ->language()
      ->getId();
  }
  $this
    ->assertEntityAlias($entity, '/' . $entity
    ->toUrl()
    ->getInternalPath(), $langcode);
}