public function PathautoTestHelperTrait::assertEntityAliasExists in Pathauto 8
3 calls to PathautoTestHelperTrait::assertEntityAliasExists()
- PathautoBulkUpdateTest::testBulkUpdate in tests/
src/ Functional/ PathautoBulkUpdateTest.php - PathautoMassDeleteTest::generateAliases in tests/
src/ Functional/ PathautoMassDeleteTest.php - Helper function to generate aliases.
- PathautoMassDeleteTest::testDeleteAll in tests/
src/ Functional/ PathautoMassDeleteTest.php - Tests the deletion of all the aliases.
File
- tests/
src/ Functional/ PathautoTestHelperTrait.php, line 98
Class
- PathautoTestHelperTrait
- Helper test class with some added functions for testing.
Namespace
Drupal\Tests\pathauto\FunctionalCode
public function assertEntityAliasExists(EntityInterface $entity) {
return $this
->assertAliasExists([
'path' => '/' . $entity
->toUrl()
->getInternalPath(),
]);
}