/**
  * AuthenticationProvider generator test
  *
  * @param $module
  * @param $class_name
  *
  * @dataProvider commandData
  */
 public function testGenerateAuthenticationProvider($module, $class_name, $provider_id)
 {
     $generator = new AuthenticationProviderGenerator();
     $this->getHelperSet()->get('renderer')->setSkeletonDirs($this->getSkeletonDirs());
     $this->getHelperSet()->get('renderer')->setTranslator($this->getTranslatorHelper());
     $generator->setHelpers($this->getHelperSet());
     $generator->generate($module, $class_name, $provider_id);
     $files = [$generator->getSite()->getAuthenticationPath($module, 'Provider') . '/' . $class_name . '.php', $generator->getSite()->getModulePath($module) . '/' . $module . '.services.yml'];
     foreach ($files as $file) {
         $this->assertTrue(file_exists($file), sprintf('%s does not exist', $file));
     }
 }
 /**
  * {@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 = $input->getOption('class');
     $provider_id = $input->getOption('provider-id');
     $this->generator->generate($module, $class, $provider_id);
 }