You are here

protected function RoleTest::setUp in Zircon Profile 8.0

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

Overrides MigrateSqlSourceTestCase::setUp

File

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

Class

RoleTest
Tests D6 role source plugin.

Namespace

Drupal\Tests\user\Unit\Migrate\d6

Code

protected function setUp() {
  foreach ($this->expectedResults as $row) {
    $this->databaseContents['permission'][] = array(
      'perm' => implode(', ', $row['permissions']),
      'rid' => $row['rid'],
    );
    unset($row['permissions']);
    $this->databaseContents['role'][] = $row;
  }
  $this->databaseContents['filter_formats'][] = array(
    'format' => 1,
    'roles' => '',
  );
  parent::setUp();
}