Pantheon\Terminus\UnitTests\Commands\Auth\LoginCommandTest::testLogInWithEmail PHP Метод

testLogInWithEmail() публичный Метод

Tests the auth:login command where the email address referencing a saved machine token is given
public testLogInWithEmail ( )
    public function testLogInWithEmail()
    {
        $email = "[email protected]";
        $this->tokens->expects($this->once())->method('get')->with($this->equalTo($email))->willReturn($this->token);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo('Logging in via machine token.'));
        $this->token->expects($this->once())->method('logIn')->with();
        $out = $this->command->logIn(compact('email'));
        $this->assertNull($out);
    }