getHelperSet()); $command->setHelperSet($this->getHelperSet()); $command->setGenerator($this->getGenerator()); $commandTester = new CommandTester($command); $this->markTestIncomplete( 'This test has not been implemented yet.' ); $code = $commandTester->execute( [ '--module' => $module, '--class' => $class_name, '--label' => $label, '--plugin-id' => $plugin_id, '--services' => $services, '--inputs' => $inputs ], ['interactive' => false] ); $this->assertEquals(0, $code); } private function getGenerator() { return $this ->getMockBuilder('Drupal\Console\Generator\PluginBlockGenerator') ->disableOriginalConstructor() ->setMethods(['generate']) ->getMock(); } }