function MigrateCustomBlockTest::setUp

Same name in other branches
  1. 9 core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockTest.php \Drupal\Tests\block_content\Kernel\Migrate\d7\MigrateCustomBlockTest::setUp()
  2. 10 core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockTest.php \Drupal\Tests\block_content\Kernel\Migrate\d7\MigrateCustomBlockTest::setUp()
  3. 11.x core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockTest.php \Drupal\Tests\block_content\Kernel\Migrate\d7\MigrateCustomBlockTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockTest.php, line 25

Class

MigrateCustomBlockTest
Tests migration of custom blocks.

Namespace

Drupal\Tests\block_content\Kernel\Migrate\d7

Code

protected function setUp() {
    parent::setUp();
    $this->installEntitySchema('block_content');
    $this->installConfig(static::$modules);
    $this->executeMigrations([
        'd7_filter_format',
        'block_content_type',
        'block_content_body_field',
        'd7_custom_block',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.