Emulate cookies for tests
This commit is contained in:
parent
aaaaf3a6ed
commit
f1cf8d440a
@ -1566,6 +1566,9 @@ class PMA_Config
|
||||
function removeCookie($cookie)
|
||||
{
|
||||
if (defined('TESTSUITE')) {
|
||||
if (isset($_COOKIE[$cookie])) {
|
||||
unset($_COOKIE[$cookie]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return setcookie(
|
||||
@ -1618,6 +1621,7 @@ class PMA_Config
|
||||
$v = time() + $validity;
|
||||
}
|
||||
if (defined('TESTSUITE')) {
|
||||
$_COOKIE[$cookie] = $value;
|
||||
return true;
|
||||
}
|
||||
return setcookie(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user