MigrateShortcutStubTest.php

Same filename and directory in other branches
  1. 9 core/modules/shortcut/tests/src/Kernel/Migrate/MigrateShortcutStubTest.php
  2. 8.9.x core/modules/shortcut/tests/src/Kernel/Migrate/MigrateShortcutStubTest.php
  3. 10 core/modules/shortcut/tests/src/Kernel/Migrate/MigrateShortcutStubTest.php

Namespace

Drupal\Tests\shortcut\Kernel\Migrate

File

core/modules/shortcut/tests/src/Kernel/Migrate/MigrateShortcutStubTest.php

View source
<?php

declare (strict_types=1);
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() : void {
    $this->performStubTest('shortcut');
  }

}

Classes

Title Deprecated Summary
MigrateShortcutStubTest Test stub creation for shortcut entities.

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