Fix some failing PHPUnit tests

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2021-06-02 14:53:17 -03:00
parent cd5727ba65
commit b4f3a2c8aa
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
5 changed files with 3 additions and 9 deletions

View File

@ -2,8 +2,6 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
bootstrap="test/bootstrap-dist.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true">

View File

@ -39,13 +39,6 @@ use const PHP_OS;
class ConfigTest extends AbstractTestCase
{
/**
* Turn off backup globals
*
* @var bool
*/
protected $backupGlobals = false;
/** @var Config */
protected $object;

View File

@ -43,6 +43,7 @@ class ExportTemplateControllerTest extends AbstractTestCase
$_SESSION['relation'][$GLOBALS['server']] = [
'version' => Version::VERSION,
'exporttemplateswork' => true,
'trackingwork' => false,
'db' => 'db',
'export_templates' => 'table',
];

View File

@ -46,6 +46,7 @@ class ReplaceControllerTest extends AbstractTestCase
'bookmark' => 'bookmark',
'uiprefswork' => 'uiprefswork',
'table_uiprefs' => 'table_uiprefs',
'trackingwork' => false,
];
}

View File

@ -81,6 +81,7 @@ class PluginsTest extends AbstractTestCase
public function testGetAuthentication(): void
{
$GLOBALS['server'] = 0;
$this->plugins = new Plugins($GLOBALS['dbi']);
$plugins = $this->plugins->getAuthentication();
$this->assertIsArray($plugins);