コード例 #1
0
 /**
  * {@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();
 }
コード例 #2
0
 /**
  * {@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();
 }
コード例 #3
0
 /**
  * {@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();
 }
コード例 #4
0
ファイル: CallbackTest.php プロジェクト: anatalsceo/en-classe
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->plugin = new TestCallback();
     parent::setUp();
 }
コード例 #5
0
ファイル: ConcatTest.php プロジェクト: anatalsceo/en-classe
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->plugin = new TestConcat();
     parent::setUp();
 }
コード例 #6
0
ファイル: ExtractTest.php プロジェクト: anatalsceo/en-classe
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $configuration['index'] = array('foo');
     $this->plugin = new Extract($configuration, 'map', array());
     parent::setUp();
 }