AuthenticationCookieTest::testGetEncryptionSecretEmpty PHP Method

testGetEncryptionSecretEmpty() public method

Test for PMA\libraries\plugins\auth\AuthenticationConfig::_getEncryptionSecret
public testGetEncryptionSecretEmpty ( ) : void
return void
    public function testGetEncryptionSecretEmpty()
    {
        $method = new \ReflectionMethod('PMA\\libraries\\plugins\\auth\\AuthenticationCookie', '_getEncryptionSecret');
        $method->setAccessible(true);
        $GLOBALS['cfg']['blowfish_secret'] = '';
        $_SESSION['encryption_key'] = '';
        $result = $method->invoke($this->object, null);
        $this->assertEquals($result, $_SESSION['encryption_key']);
        $this->assertEquals(32, strlen($result));
    }