4 * Contains Drupal\Console\Test\Generator\ProfileGeneratorTest.
7 namespace Drupal\Console\Test\Generator;
9 use Drupal\Console\Generator\ProfileGenerator;
10 use Drupal\Console\Test\DataProvider\ProfileDataProviderTrait;
13 * Class ProfileGeneratorTest
14 * @package Drupal\Console\Test\Generator
16 class ProfileGeneratorTest extends GeneratorTest
18 use ProfileDataProviderTrait;
21 * Profile generator test.
24 * @param $machine_name
25 * @param $profile_path
28 * @param $dependencies
29 * @param $distribution
31 * @dataProvider commandData
33 public function testGenerateProfile(
42 $generator = new ProfileGenerator();
43 $this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
44 $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
45 $generator->setHelperSet($this->getHelperSet());
58 $machine_name . '.info.yml',
59 $machine_name . '.install',
60 $machine_name . '.profile',
63 foreach ($files as $file) {
64 $file_path = $profile_path . '/' . $machine_name . '/' . $file;
66 file_exists($file_path),
67 sprintf('%s has been generated', $file_path)