More tidying.
[yaffs-website] / vendor / drupal / console / Test / Generator / CommandGeneratorTest.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\Console\Test\Generator\CommandGeneratorTest.
6  */
7
8 namespace Drupal\Console\Test\Generator;
9
10 use Drupal\Console\Generator\CommandGenerator;
11 use Drupal\Console\Test\DataProvider\CommandDataProviderTrait;
12
13 class CommandGeneratorTest extends GeneratorTest
14 {
15     use CommandDataProviderTrait;
16
17     /**
18      * @param $module
19      * @param $name
20      * @param $class
21      * @param $containerAware
22      *
23      * @dataProvider commandData
24      */
25     public function testGenerateCommand(
26         $module,
27         $name,
28         $class,
29         $containerAware
30     ) {
31         $generator = new CommandGenerator();
32         $this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
33         $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
34         $generator->setHelperSet($this->getHelperSet());
35
36         $generator->generate(
37             $module,
38             $name,
39             $class,
40             $containerAware
41         );
42     }
43 }