You are here

public function PathLegacyRoutesKernelTest::testLegacyEditRoute in Drupal 8

@expectedDeprecation The 'path.admin_edit' route is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the 'entity.path_alias.edit_form' route instead. See https://www.drupal.org/node/3013865

File

core/modules/path/tests/src/Kernel/PathLegacyRoutesKernelTest.php, line 31

Class

PathLegacyRoutesKernelTest
Tests the BC layer for the deprecated routes of the path module.

Namespace

Drupal\Tests\path\Kernel

Code

public function testLegacyEditRoute() {
  $this
    ->assertNotEmpty(Url::fromRoute('path.admin_edit', [
    'path_alias' => 1,
  ])
    ->toString());
}