You are here

protected function MigrateIp2CountryUserDataTest::setUp in IP-based Determination of a Visitor's Country 8

Same name in this branch
  1. 8 tests/src/Kernel/Migrate/d6/MigrateIp2CountryUserDataTest.php \Drupal\Tests\ip2country\Kernel\Migrate\d6\MigrateIp2CountryUserDataTest::setUp()
  2. 8 tests/src/Kernel/Migrate/d7/MigrateIp2CountryUserDataTest.php \Drupal\Tests\ip2country\Kernel\Migrate\d7\MigrateIp2CountryUserDataTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

tests/src/Kernel/Migrate/d7/MigrateIp2CountryUserDataTest.php, line 29

Class

MigrateIp2CountryUserDataTest
Tests migration of Ip2Country {user}.data into {user_data}.

Namespace

Drupal\Tests\ip2country\Kernel\Migrate\d7

Code

protected function setUp() {
  parent::setUp();

  // Need to migrate users first.
  $this
    ->executeMigrations([
    'd7_user_role',
    'd7_user',
  ]);
  $this
    ->installSchema('user', [
    'users_data',
  ]);
  $this
    ->executeMigration('d7_ip2country_user_data');
}