protected function BlockVisibilityTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockVisibilityTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest::setUp()
- 9 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockVisibilityTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest::setUp()
Overrides MigrateProcessTestCase::setUp
File
- core/
modules/ block/ tests/ src/ Unit/ Plugin/ migrate/ process/ BlockVisibilityTest.php, line 31
Class
- BlockVisibilityTest
- Tests the block_visibility process plugin.
Namespace
Drupal\Tests\block\Unit\Plugin\migrate\processCode
protected function setUp() : void {
parent::setUp();
$this->moduleHandler = $this
->prophesize(ModuleHandlerInterface::class);
$migrate_lookup = $this
->prophesize(MigrateLookupInterface::class);
$this->plugin = new BlockVisibility([], 'block_visibility_pages', [], $this->moduleHandler
->reveal(), $migrate_lookup
->reveal());
}