You are here

public function MigrateLookupTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/MigrateLookupTest.php \Drupal\Tests\migrate\Kernel\MigrateLookupTest::setUp()
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateLookupTest.php \Drupal\Tests\migrate\Kernel\MigrateLookupTest::setUp()

Overrides MigrateTestBase::setUp

File

core/modules/migrate/tests/src/Kernel/MigrateLookupTest.php, line 39

Class

MigrateLookupTest
Tests the Migrate Lookup service.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->setTestLogger();
  $this->migrateLookup = $this->container
    ->get('migrate.lookup');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('user');
  $this
    ->installConfig([
    'node',
    'user',
  ]);
  $this
    ->createContentType([
    'type' => 'node_lookup',
  ]);
}