/** * {@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() { $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() { $this->plugin = new TestCallback(); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $this->plugin = new TestConcat(); parent::setUp(); }
/** * {@inheritdoc} */ protected function setUp() { $configuration['index'] = array('foo'); $this->plugin = new Extract($configuration, 'map', array()); parent::setUp(); }