Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
 /**
  * Tests a custom minimum password length.
  *
  * @expectedException \Symfony\Component\Console\Exception\InvalidArgumentException
  * @expectedExceptionMessage The password must be at least 16 characters long.
  */
 public function testCustomPasswordLength()
 {
     $framework = $this->mockContaoFramework(null, null, ['Contao\\Config' => $this->mockConfigAdapter(16), 'Contao\\Encryption' => $this->mockEncryptionAdapter()]);
     $container = $this->mockContainerWithContaoScopes();
     $container->set('contao.framework', $framework);
     $command = new UserPasswordCommand();
     $command->setContainer($container);
     $command->setApplication(new Application());
     (new CommandTester($command))->execute(['username' => 'foobar', '--password' => '123456789'], ['interactive' => false]);
 }