You are here

public function BlockRegionTest::testTransformSameThemeRegionExists in Drupal 10

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::testTransformSameThemeRegionExists()
  2. 9 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockRegionTest::testTransformSameThemeRegionExists()

If the source and destination themes are identical, the region should only be passed through if it actually exists in the destination theme.

@covers ::transform

File

core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php, line 56

Class

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

Namespace

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

Code

public function testTransformSameThemeRegionExists() {
  $this
    ->assertSame('triptych_second', $this
    ->transform([
    'bartik',
    'bartik',
    'triptych_middle',
  ]));
}