4 * Contains \Drupal\Console\Test\Command\GeneratorPluginBlockCommandTest.
7 namespace Drupal\Console\Test\Command;
9 use Drupal\Console\Command\Generate\PluginBlockCommand;
10 use Symfony\Component\Console\Tester\CommandTester;
11 use Drupal\Console\Test\DataProvider\PluginBlockDataProviderTrait;
13 class GeneratorPluginBlockCommandTest extends GenerateCommandTest
15 use PluginBlockDataProviderTrait;
18 * Plugin block generator test
25 * @dataProvider commandData
27 public function testGeneratePluginBlock(
35 $command = new PluginBlockCommand($this->getHelperSet());
36 $command->setHelperSet($this->getHelperSet());
37 $command->setGenerator($this->getGenerator());
39 $commandTester = new CommandTester($command);
41 $this->markTestIncomplete(
42 'This test has not been implemented yet.'
45 $code = $commandTester->execute(
47 '--module' => $module,
48 '--class' => $class_name,
50 '--plugin-id' => $plugin_id,
51 '--services' => $services,
54 ['interactive' => false]
57 $this->assertEquals(0, $code);
60 private function getGenerator()
63 ->getMockBuilder('Drupal\Console\Generator\PluginBlockGenerator')
64 ->disableOriginalConstructor()
65 ->setMethods(['generate'])