function GenerateCommandsKernelTest::testDiscovery
The commands are discovered, so that dr can load them.
Attributes
#[DataProvider('commands')]
File
-
devel_generate/
tests/ src/ Kernel/ GenerateCommandsKernelTest.php, line 95
Class
- GenerateCommandsKernelTest
- Tests the devel_generate commands.
Namespace
Drupal\Tests\devel_generate\KernelCode
public function testDiscovery(string $class, array $aliases) : void {
$loader = $this->container
->get('console.command_loader');
foreach ([
$class::NAME,
$aliases,
] as $name) {
$this->assertTrue($loader->has($name), $name);
}
}