5 * Contains Drupal\Console\Test\Generator\EntityBundleGeneratorTest.
8 namespace Drupal\Console\Test\Generator;
10 use Drupal\Console\Generator\EntityBundleGenerator;
11 use Drupal\Console\Test\DataProvider\EntityBundleDataProviderTrait;
13 class ContentTypeGeneratorTest extends GeneratorTest
15 use EntityBundleDataProviderTrait;
18 * ContentType generator test
22 * @param $bundle_title
24 * @dataProvider commandData
26 public function testGenerateContentType(
31 $generator = new EntityBundleGenerator();
32 $this->getRenderHelper()->setSkeletonDirs($this->getSkeletonDirs());
33 $this->getRenderHelper()->setTranslator($this->getTranslatorHelper());
34 $generator->setHelperSet($this->getHelperSet());
43 $generator->getSite()->getModulePath($module) . '/config/install/core.entity_form_display.node.' . $bundle_name . '.default.yml',
44 $generator->getSite()->getModulePath($module) . '/config/install/core.entity_view_display.node.' . $bundle_name . '.default.yml',
45 $generator->getSite()->getModulePath($module) . '/config/install/core.entity_view_display.node.' . $bundle_name . '.teaser.yml',
46 $generator->getSite()->getModulePath($module) . '/config/install/field.field.node.' . $bundle_name . '.body.yml',
47 $generator->getSite()->getModulePath($module) . '/config/install/node.type.' . $bundle_name . '.yml',
50 foreach ($files as $file) {
53 sprintf('%s does not exist', $file)