function BlockRegionTest::testTransformSameThemeRegionNotExists

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

Tests transforming a block with the same theme and a non-existent region.

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

@legacy-covers ::transform

File

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

Class

BlockRegionTest
Tests Drupal\block\Plugin\migrate\process\BlockRegion.

Namespace

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

Code

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

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