You are here

public function MigrateShortcutTest::testShortcutMigration in Zircon Profile 8

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

Test the shortcut migration.

File

core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutTest.php, line 71
Contains \Drupal\shortcut\Tests\Migrate\d7\MigrateShortcutTest.

Class

MigrateShortcutTest
Test shortcut menu links migration to Shortcut entities.

Namespace

Drupal\shortcut\Tests\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');
}