/**
  * PluginCKEditorButton generator test
  *
  * @param $module
  * @param $class_name
  * @param $label
  * @param $plugin_id
  * @param $button_name
  *
  * @dataProvider commandData
  */
 public function testGenerateCKEditorButtonEffect($module, $class_name, $label, $plugin_id, $button_name)
 {
     $generator = new PluginCKEditorButtonGenerator();
     $this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
     $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
     $generator->setHelperSet($this->getHelperSet());
     $generator->generate($module, $class_name, $label, $plugin_id, $button_name);
     $this->assertTrue(file_exists($generator->getSite()->getPluginPath($module, 'CKEditorPlugin') . '/' . $class_name . '.php'), sprintf('%s does not exist', $class_name . '.php'));
 }
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $io = new DrupalStyle($input, $output);
     // @see use Drupal\Console\Command\Shared\ConfirmationTrait::confirmGeneration
     if (!$this->confirmGeneration($io)) {
         return;
     }
     $module = $input->getOption('module');
     $class_name = $input->getOption('class');
     $label = $input->getOption('label');
     $plugin_id = $input->getOption('plugin-id');
     $button_name = $input->getOption('button-name');
     $button_icon_path = $input->getOption('button-icon-path');
     $this->generator->generate($module, $class_name, $label, $plugin_id, $button_name, $button_icon_path);
     $this->chainQueue->addCommand('cache:rebuild', ['cache' => 'discovery'], false);
 }