AuthenticationCookieTest::testAuthFailsDeny PHP Method

testAuthFailsDeny() public method

public testAuthFailsDeny ( )
    public function testAuthFailsDeny()
    {
        $this->object = $this->getMockBuilder('PMA\\libraries\\plugins\\auth\\AuthenticationCookie')->disableOriginalConstructor()->setMethods(array('auth'))->getMock();
        $GLOBALS['server'] = 2;
        $_COOKIE['pmaAuth-2'] = 'pass';
        $GLOBALS['login_without_password_is_forbidden'] = '';
        $GLOBALS['allowDeny_forbidden'] = '1';
        $this->doMockResponse(array('Cache-Control: no-store, no-cache, must-revalidate'), array('Pragma: no-cache'));
        $this->assertEquals($GLOBALS['conn_error'], 'Access denied!');
    }