Remove no longer needed code from test

Apparenty nothing really needs PMA_USR_BROWSER_AGENT here, so avoid
setting it. This removes need for runkit here.

Issue #13484

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-07-12 17:38:14 +02:00
parent 0983378e29
commit 66807421bd

View File

@ -93,15 +93,6 @@ class AuthenticationConfigTest extends PMATestCase
$GLOBALS['cfg']['Servers'] = array(1);
$GLOBALS['allowDeny_forbidden'] = false;
$GLOBALS['collation_connection'] = 'utf-8';
if (!defined('PMA_USR_BROWSER_AGENT')) {
define('PMA_USR_BROWSER_AGENT', 'chrome');
$removeConstant = true;
if (! PMA_HAS_RUNKIT) {
$this->markTestSkipped('Cannot remove constant');
}
}
$dbi = $this->getMockBuilder('PhpMyAdmin\DatabaseInterface')
->disableOriginalConstructor()
@ -142,8 +133,5 @@ class AuthenticationConfigTest extends PMATestCase
. 'class="button disableAjax">Retry to connect</a>',
$html
);
if ($removeConstant) {
runkit_constant_remove('PMA_USR_BROWSER_AGENT');
}
}
}