コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function getPlugin(array $configuration = [], $plugin_definition = [])
 {
     $plugin_definition += ['message' => $this->getRandomGenerator()->sentences(4), 'summary' => NULL, 'documentation' => [], 'tags' => []];
     return parent::getPlugin($configuration, $plugin_definition);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->plugin = $this->getPlugin();
 }
コード例 #4
0
 public function setUp()
 {
     parent::setUp();
     $definition = ['properties' => ['nid' => ['get' => 'id'], 'title' => ['get' => 'getTitle', 'set' => 'setTitle']]];
     $this->plugin = $this->getPlugin([], $definition);
 }
コード例 #5
0
 public function setUp()
 {
     parent::setUp();
     $definition = ['properties' => ['input' => ['get' => 'getUserInput', 'set' => 'setUserInput']]];
     $this->plugin = $this->getPlugin([], $definition);
 }
コード例 #6
0
 public function setUp()
 {
     parent::setUp();
     $this->report = new Report();
 }
コード例 #7
0
 public function setUp()
 {
     parent::setUp();
     $this->issue = new Issue($this->target, 'Foobaz');
 }