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/d7/MigrateBlockTest.php \Drupal\block\Tests\Migrate\d7\MigrateBlockTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides MigrateDrupal7TestBase::setUp
File
- core/
modules/ block/ src/ Tests/ Migrate/ d7/ MigrateBlockTest.php, line 39 - Contains \Drupal\block\Tests\Migrate\d7\MigrateBlockTest.
Class
- MigrateBlockTest
- Tests migration of blocks to configuration entities.
Namespace
Drupal\block\Tests\Migrate\d7Code
protected function setUp() {
parent::setUp();
$this
->installConfig(static::$modules);
$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([
'bartik',
]);
$this
->executeMigrations([
'd7_filter_format',
'd7_user_role',
'block_content_type',
'block_content_body_field',
'd7_custom_block',
'd7_block',
]);
}