Pantheon\Terminus\UnitTests\Commands\Auth\LoginCommandTest::testCannotLogInWithoutTokens PHP Method

testCannotLogInWithoutTokens() public method

Tests the auth:login command when no data was given and there are no saved machine tokens
    public function testCannotLogInWithoutTokens()
    {
        $this->tokens->expects($this->once())->method('all')->willReturn([]);
        $out = $this->command->logIn();
        $this->assertNull($out);
    }