/** * {@inheritdoc} */ protected function setUp() { $this->transliteration = $this->getMockBuilder('Drupal\\Component\\Transliteration\\TransliterationInterface')->disableOriginalConstructor()->getMock(); $this->row = $this->getMockBuilder('Drupal\\migrate\\Row')->disableOriginalConstructor()->getMock(); $this->migrateExecutable = $this->getMockBuilder('Drupal\\migrate\\MigrateExecutable')->disableOriginalConstructor()->getMock(); parent::setUp(); }
/** * {@inheritdoc} */ 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()); }
/** * {@inheritdoc} */ protected function setUp() { $this->entityQuery = $this->getMockBuilder('Drupal\\Core\\Entity\\Query\\QueryInterface')->disableOriginalConstructor()->getMock(); $this->entityQueryFactory = $this->getMockBuilder('Drupal\\Core\\Entity\\Query\\QueryFactory')->disableOriginalConstructor()->getMock(); $this->entityQueryFactory->expects($this->any())->method('get')->will($this->returnValue($this->entityQuery)); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $this->row = $this->getMockBuilder('Drupal\\migrate\\Row')->disableOriginalConstructor()->getMock(); $this->migrateExecutable = $this->getMockBuilder('Drupal\\migrate\\MigrateExecutable')->disableOriginalConstructor()->getMock(); $configuration['map']['foo']['bar'] = 'baz'; $this->plugin = new StaticMap($configuration, 'map', array()); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $configuration['map']['foo']['bar'] = 'baz'; $this->plugin = new StaticMap($configuration, 'map', array()); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $configuration = ['delimiter' => ',']; $this->plugin = new Explode($configuration, 'map', []); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $this->plugin = new TestGet(); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); }
/** * {@inheritdoc} */ public function setUp() { parent::setUp(); $this->plugin = new FieldTypeDefaults([], 'field_type_defaults', []); }
/** * {@inheritdoc} */ protected function setUp() { $this->plugin = new TestCallback(); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $this->migrationConfiguration = ['id' => 'test', 'process' => [], 'source' => []]; parent::setUp(); }
/** * {@inheritdoc} */ public function setUp() { $this->plugin = new TestMigrationTest(); $this->migrationConfiguration = array('id' => 'test_migration'); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $configuration['index'] = array('foo'); $this->plugin = new Extract($configuration, 'map', array()); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->plugin = new ConvertTokens([], 'convert_tokens', []); }