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(
43 $generator = new ProfileGenerator();
44 $this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
45 $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
46 $generator->setHelperSet($this->getHelperSet());
60 $machine_name . '.info.yml',
61 $machine_name . '.install',
62 $machine_name . '.profile',
65 foreach ($files as $file) {
66 $file_path = $profile_path . '/' . $machine_name . '/' . $file;
68 file_exists($file_path),
69 sprintf('%s has been generated', $file_path)