You are here

protected function UserTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/user/tests/src/Unit/Migrate/d6/UserTest.php \Drupal\Tests\user\Unit\Migrate\d6\UserTest::setUp()
  2. 8 core/modules/user/tests/src/Unit/Plugin/migrate/source/d7/UserTest.php \Drupal\Tests\user\Unit\Plugin\migrate\source\d7\UserTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/user/tests/src/Unit/Migrate/d6/UserTest.php \Drupal\Tests\user\Unit\Migrate\d6\UserTest::setUp()

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/user/tests/src/Unit/Migrate/d6/UserTest.php, line 73
Contains \Drupal\Tests\user\Unit\Migrate\d6\UserTest.

Class

UserTest
Tests D6 user source plugin.

Namespace

Drupal\Tests\user\Unit\Migrate\d6

Code

protected function setUp() {
  foreach ($this->expectedResults as $k => $row) {
    $this->databaseContents['users'][$k] = $row;
  }

  // getDatabase() will not create empty tables, so we need to insert data
  // even if it's irrelevant to the test.
  $this->databaseContents['users_roles'] = array(
    array(
      'uid' => 99,
      'rid' => 99,
    ),
  );
  parent::setUp();
}