protected function MigrateBlockTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/block/src/Tests/Migrate/d6/MigrateBlockTest.php \Drupal\block\Tests\Migrate\d6\MigrateBlockTest::setUp()
- 8 core/modules/block/src/Tests/Migrate/d7/MigrateBlockTest.php \Drupal\block\Tests\Migrate\d7\MigrateBlockTest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/block/src/Tests/Migrate/d6/MigrateBlockTest.php \Drupal\block\Tests\Migrate\d6\MigrateBlockTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides MigrateDrupal6TestBase::setUp
File
- core/
modules/ block/ src/ Tests/ Migrate/ d6/ MigrateBlockTest.php, line 34 - Contains \Drupal\block\Tests\Migrate\d6\MigrateBlockTest.
Class
- MigrateBlockTest
- Tests migration of blocks to configuration entities.
Namespace
Drupal\block\Tests\Migrate\d6Code
protected function setUp() {
parent::setUp();
$this
->installConfig([
'block_content',
]);
$this
->installEntitySchema('block_content');
// Set Bartik and Seven as the default public and admin theme.
$config = $this
->config('system.theme');
$config
->set('default', 'bartik');
$config
->set('admin', 'seven');
$config
->save();
// Install one of D8's test themes.
\Drupal::service('theme_handler')
->install([
'test_theme',
]);
$this
->executeMigrations([
'd6_filter_format',
'block_content_type',
'block_content_body_field',
'd6_custom_block',
'menu',
'd6_user_role',
'd6_block',
]);
}