Phue\Test\Command\IsAuthorizedTest::testIsNotAuthorized PHP Метод

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

Test: Is not authorized
public testIsNotAuthorized ( )
    public function testIsNotAuthorized()
    {
        // Stub transport's sendRequest
        $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}"))->will($this->throwException($this->getMock('\\Phue\\Transport\\Exception\\UnauthorizedUserException')));
        $auth = new IsAuthorized();
        $this->assertFalse($auth->send($this->mockClient));
    }