MigrateUserStubTest.php

Same filename in other branches
  1. 9 core/modules/user/tests/src/Kernel/Migrate/MigrateUserStubTest.php
  2. 8.9.x core/modules/user/tests/src/Kernel/Migrate/MigrateUserStubTest.php
  3. 11.x core/modules/user/tests/src/Kernel/Migrate/MigrateUserStubTest.php

Namespace

Drupal\Tests\user\Kernel\Migrate

File

core/modules/user/tests/src/Kernel/Migrate/MigrateUserStubTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\user\Kernel\Migrate;

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

/**
 * Test stub creation for user entities.
 *
 * @group user
 */
class MigrateUserStubTest extends MigrateDrupalTestBase {
    use StubTestTrait;
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'user',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installEntitySchema('user');
    }
    
    /**
     * Tests creation of user stubs.
     */
    public function testStub() : void {
        $this->performStubTest('user');
    }

}

Classes

Title Deprecated Summary
MigrateUserStubTest Test stub creation for user entities.

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