function MigrateShortcutTest::testShortcutMigration

Same name in other branches
  1. 9 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutTest::testShortcutMigration()
  2. 8.9.x core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php \Drupal\Tests\shortcut\Kernel\Migrate\d7\MigrateShortcutTest::testShortcutMigration()
  3. 10 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 68

Class

MigrateShortcutTest
Test shortcut menu links migration to Shortcut entities.

Namespace

Drupal\Tests\shortcut\Kernel\Migrate\d7

Code

public function testShortcutMigration() : void {
    // 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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.