function BlockVisibilityTest::testTransformPhpDisabled
Same name in other branches
- 9 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockVisibilityTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest::testTransformPhpDisabled()
- 10 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockVisibilityTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest::testTransformPhpDisabled()
- 11.x core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockVisibilityTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest::testTransformPhpDisabled()
@covers ::transform
File
-
core/
modules/ block/ tests/ src/ Unit/ Plugin/ migrate/ process/ BlockVisibilityTest.php, line 78
Class
- BlockVisibilityTest
- Tests the block_visibility process plugin.
Namespace
Drupal\Tests\block\Unit\Plugin\migrate\processCode
public function testTransformPhpDisabled() {
$this->moduleHandler
->moduleExists('php')
->willReturn(FALSE);
$transformed_value = $this->plugin
->transform([
2,
'<?php',
[],
], $this->migrateExecutable, $this->row, 'destination_property');
$this->assertEmpty($transformed_value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.