function BlockRegionTest::testTransformSameThemeRegionNotExists
Same name in other branches
- 9 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockRegionTest::testTransformSameThemeRegionNotExists()
- 10 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockRegionTest::testTransformSameThemeRegionNotExists()
- 11.x 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 66
Class
- BlockRegionTest
- @coversDefaultClass \Drupal\block\Plugin\migrate\process\BlockRegion @group block
Namespace
Drupal\Tests\block\Unit\Plugin\migrate\processCode
public function testTransformSameThemeRegionNotExists() {
$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.