You are here

protected function BlockVisibilityTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockVisibilityTest.php \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest::setUp()
  2. 10 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 29

Class

BlockVisibilityTest
Tests the block_visibility process plugin.

Namespace

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

Code

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());
}