You are here

MigrateUserStubTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/user/src/Tests/Migrate/MigrateUserStubTest.php

File

core/modules/user/src/Tests/Migrate/MigrateUserStubTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\user\Tests\Migrate\MigrateUserStubTest.
 */
namespace Drupal\user\Tests\Migrate;

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

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

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

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();
    $this
      ->installEntitySchema('user');
    $this
      ->installSchema('system', [
      'sequences',
    ]);
  }

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

}

Classes

Namesort descending Description
MigrateUserStubTest Test stub creation for user entities.