function DevelHookCommandTest::command
Builds the command the way the container does.
2 calls to DevelHookCommandTest::command()
- DevelHookCommandTest::runCommand in tests/
src/ Kernel/ DevelHookCommandTest.php - Runs the command non-interactively and asserts that it succeeded.
- DevelHookCommandTest::testInteract in tests/
src/ Kernel/ DevelHookCommandTest.php - The prompt offers the implementations.
File
-
tests/
src/ Kernel/ DevelHookCommandTest.php, line 133
Class
- DevelHookCommandTest
- Tests the devel:hook command.
Namespace
Drupal\Tests\devel\KernelCode
protected function command() : DevelHookCommand {
return $this->container
->get(DevelHookCommand::class);
}