public function setUp()
 {
     parent::setUp();
     $this->indexer = $this->getMockBuilder('\\Drupal\\drupalmoduleupgrader\\Plugin\\DMU\\Indexer\\Functions')->disableOriginalConstructor()->getMock();
     $this->container->get('plugin.manager.drupalmoduleupgrader.indexer')->method('createInstance')->with('function')->willReturn($this->indexer);
 }
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->plugin = $this->getPlugin();
 }
 public function setUp()
 {
     parent::setUp();
     $definition = ['properties' => ['nid' => ['get' => 'id'], 'title' => ['get' => 'getTitle', 'set' => 'setTitle']]];
     $this->plugin = $this->getPlugin([], $definition);
 }
 public function setUp()
 {
     parent::setUp();
     $definition = ['properties' => ['input' => ['get' => 'getUserInput', 'set' => 'setUserInput']]];
     $this->plugin = $this->getPlugin([], $definition);
 }
 public function setUp()
 {
     parent::setUp();
     $this->report = new Report();
 }
Exemplo n.º 6
0
 public function setUp()
 {
     parent::setUp();
     $this->issue = new Issue($this->target, 'Foobaz');
 }