You are here

MigrateShortcutStubTest.php in Drupal 9

File

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

namespace Drupal\Tests\shortcut\Kernel\Migrate;

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

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

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

  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    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.