You are here

protected function TestSiteUserLoginCommand::configure in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php \Drupal\TestSite\Commands\TestSiteUserLoginCommand::configure()

File

core/tests/Drupal/TestSite/Commands/TestSiteUserLoginCommand.php, line 32

Class

TestSiteUserLoginCommand
Command to generate a login link for the test site.

Namespace

Drupal\TestSite\Commands

Code

protected function configure() {
  $this
    ->setName('user-login')
    ->setDescription('Generate a one time login link for an user.')
    ->addArgument('uid', InputArgument::REQUIRED, 'The ID of the user for whom the link will be generated')
    ->addOption('site-path', NULL, InputOption::VALUE_REQUIRED, 'The path for the test site.');
}