You are here

protected function BlockVisibilityTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 33
Contains \Drupal\Tests\block\Unit\Plugin\migrate\process\BlockVisibilityTest.

Class

BlockVisibilityTest
Tests the block_visibility process plugin.

Namespace

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

Code

protected function setUp() {
  parent::setUp();
  $this->moduleHandler = $this
    ->prophesize(ModuleHandlerInterface::class);
  $migration_plugin = $this
    ->prophesize(MigrateProcessInterface::class);
  $this->plugin = new BlockVisibility([], 'block_visibility_pages', [], $this->moduleHandler
    ->reveal(), $migration_plugin
    ->reveal());
}