public function it_can_be_executed_and_derive_display_name(InputInterface $input, OutputInterface $output) { $email = '*****@*****.**'; $pass = '******'; $input->getArgument('email-address')->willReturn($email); $input->getArgument('password')->willReturn($pass); $input->getArgument('display-name')->willReturn(''); $this->authenticationService->createUser(EmailAddress::get($email), $pass, 'joe'); $this->execute($input, $output); }
public function execute(InputInterface $input, OutputInterface $output) { $this->authenticationService->createUser(EmailAddress::get($input->getArgument('email-address')), $input->getArgument('password'), $this->getDisplayName($input->getArgument('display-name'), $input->getArgument('email-address'))); }