function GenerateCommandsKernelTest::testContentValidation
The plugin's validation errors are reported.
File
-
devel_generate/
tests/ src/ Kernel/ GenerateCommandsKernelTest.php, line 153
Class
- GenerateCommandsKernelTest
- Tests the devel_generate commands.
Namespace
Drupal\Tests\devel_generate\KernelCode
public function testContentValidation() : void {
$this->expectException(\Exception::class);
$this->expectExceptionMessage("One or more content types have been entered that don't exist on this site");
$this->runCommand(GenerateContentCommand::class, [
'--bundles' => 'no_such_type',
]);
}