protected function RoleTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/user/tests/src/Unit/Migrate/d6/RoleTest.php \Drupal\Tests\user\Unit\Migrate\d6\RoleTest::setUp()
- 8 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
- 8.0 core/modules/user/tests/src/Unit/Plugin/migrate/source/d7/RoleTest.php \Drupal\Tests\user\Unit\Plugin\migrate\source\d7\RoleTest::setUp()
Overrides MigrateSqlSourceTestCase::setUp
File
- core/
modules/ user/ tests/ src/ Unit/ Plugin/ migrate/ source/ d7/ RoleTest.php, line 64 - Contains \Drupal\Tests\user\Unit\Plugin\migrate\source\d7\RoleTest.
Class
- RoleTest
- Tests D7 role source plugin.
Namespace
Drupal\Tests\user\Unit\Plugin\migrate\source\d7Code
protected function setUp() {
foreach ($this->expectedResults as $row) {
foreach ($row['permissions'] as $permission) {
$this->databaseContents['role_permission'][] = array(
'permission' => $permission,
'rid' => $row['rid'],
);
}
unset($row['permissions']);
$this->databaseContents['role'][] = $row;
}
parent::setUp();
}