This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console/Test/Generator/CommandGeneratorTest.php
2018-11-23 12:29:20 +00:00

44 lines
995 B
PHP

<?php
/**
* @file
* Contains \Drupal\Console\Test\Generator\CommandGeneratorTest.
*/
namespace Drupal\Console\Test\Generator;
use Drupal\Console\Generator\CommandGenerator;
use Drupal\Console\Test\DataProvider\CommandDataProviderTrait;
class CommandGeneratorTest extends GeneratorTest
{
use CommandDataProviderTrait;
/**
* @param $module
* @param $name
* @param $class
* @param $containerAware
*
* @dataProvider commandData
*/
public function testGenerateCommand(
$module,
$name,
$class,
$containerAware
) {
$generator = new CommandGenerator();
$this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
$this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
$generator->setHelperSet($this->getHelperSet());
$generator->generate(
$module,
$name,
$class,
$containerAware
);
}
}