Contao\CoreBundle\Test\Command\UserPasswordCommandTest::testExitCodeWithoutPassword PHP Method

testExitCodeWithoutPassword() public method

Tests the command without a password.
    public function testExitCodeWithoutPassword()
    {
        $code = (new CommandTester($this->command))->execute(['username' => 'foobar'], ['interactive' => false]);
        $this->assertEquals(1, $code);
    }