5 * Contains Drupal\Console\Test\Generator\ServiceGeneratorTest.
8 namespace Drupal\Console\Test\Generator;
10 use Drupal\Console\Generator\ServiceGenerator;
11 use Drupal\Console\Test\DataProvider\ServiceDataProviderTrait;
13 class ServiceGeneratorTest extends GeneratorTest
15 use ServiceDataProviderTrait;
18 * Service generator test
25 * @param $path_service
27 * @dataProvider commandData
29 public function testGenerateService(
37 $generator = new ServiceGenerator();
38 $this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
39 $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
40 $generator->setHelperSet($this->getHelperSet());
52 $generator->getSite()->getModulePath($module).'/'.$module.'.services.yml',
53 $generator->getSite()->getModulePath($module).'/'.$path_service .'/'.$class.'.php'
56 foreach ($files as $file) {
59 sprintf('%s does not exist', $file)