BlockVisibility example


  protected $moduleHandler;

  /** * {@inheritdoc} */
  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());
  }

  /** * @covers ::transform */
  public function testTransformNoData() {
    $transformed_value = $this->plugin->transform([0, '', []]$this->migrateExecutable, $this->row, 'destination_property');
    $this->assertEmpty($transformed_value);
  }

  /** * @covers ::transform */
Home | Imprint | This part of the site doesn't use cookies.