You are here

public function MigrateShortcutSetUsersTest::testShortcutSetUsersMigration in Zircon Profile 8

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

Test the shortcut set migration.

File

core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetUsersTest.php, line 53
Contains \Drupal\shortcut\Tests\Migrate\d7\MigrateShortcutSetUsersTest.

Class

MigrateShortcutSetUsersTest
Test shortcut_set_users migration.

Namespace

Drupal\shortcut\Tests\Migrate\d7

Code

public function testShortcutSetUsersMigration() {

  // Check if migrated user has correct migrated shortcut set assigned.
  $account = User::load(2);
  $shortcut_set = shortcut_current_displayed_set($account);

  /** @var \Drupal\shortcut\ShortcutSetInterface $shortcut_set */
  $this
    ->assertIdentical('shortcut_set_2', $shortcut_set
    ->id());
}