You are here

public function BlockRegionTest::testTransformSameThemeRegionNotExists in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockRegionTest::testTransformSameThemeRegionNotExists()

If the source and destination themes are identical, the region should be changed to 'content' if it doesn't exist in the destination theme.

@covers ::transform

File

core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php, line 65
Contains \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockRegionTest.

Class

BlockRegionTest
@coversDefaultClass \Drupal\block\Plugin\migrate\process\BlockRegion @group block

Namespace

Drupal\Tests\block\Unit\Plugin\migrate\process

Code

public function testTransformSameThemeRegionNotExists() {
  $this
    ->assertSame('content', $this
    ->transform([
    'footer',
    'bartik',
    'bartik',
  ]));
}