You are here

public function MigrateShortcutTest::testShortcutMigration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutTest::testShortcutMigration()
  2. 9 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutTest::testShortcutMigration()

Tests the shortcut migration.

File

core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php, line 66

Class

MigrateShortcutTest
Test shortcut menu links migration to Shortcut entities.

Namespace

Drupal\Tests\shortcut\Kernel\Migrate\d7

Code

public function testShortcutMigration() {

  // Check if the 4 shortcuts were migrated correctly.
  $this
    ->assertEntity(1, 'Add content', -20, '/node/add');
  $this
    ->assertEntity(2, 'Find content', -19, '/admin/content');
  $this
    ->assertEntity(3, 'Help', -49, '/admin/help');
  $this
    ->assertEntity(4, 'People', -50, '/admin/people');
}