You are here

MigrateShortcutStubTest.php in Zircon Profile 8

File

core/modules/shortcut/src/Tests/Migrate/MigrateShortcutStubTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\shortcut\Tests\Migrate\MigrateShortcutStubTest.
 */
namespace Drupal\shortcut\Tests\Migrate;

use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
use Drupal\migrate_drupal\Tests\StubTestTrait;

/**
 * Test stub creation for shortcut entities.
 *
 * @group shortcut
 */
class MigrateShortcutStubTest extends MigrateDrupalTestBase {
  use StubTestTrait;

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    'shortcut',
    'link',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this
      ->installEntitySchema('shortcut');

    // Make sure the 'default' shortcut_set is installed.
    $this
      ->installConfig([
      'shortcut',
    ]);
  }

  /**
   * Tests creation of shortcut stubs.
   */
  public function testStub() {
    $this
      ->performStubTest('shortcut');
  }

}

Classes

Namesort descending Description
MigrateShortcutStubTest Test stub creation for shortcut entities.