Fix some failing PHPUnit tests
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
cd5727ba65
commit
b4f3a2c8aa
@ -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">
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -43,6 +43,7 @@ class ExportTemplateControllerTest extends AbstractTestCase
|
||||
$_SESSION['relation'][$GLOBALS['server']] = [
|
||||
'version' => Version::VERSION,
|
||||
'exporttemplateswork' => true,
|
||||
'trackingwork' => false,
|
||||
'db' => 'db',
|
||||
'export_templates' => 'table',
|
||||
];
|
||||
|
||||
@ -46,6 +46,7 @@ class ReplaceControllerTest extends AbstractTestCase
|
||||
'bookmark' => 'bookmark',
|
||||
'uiprefswork' => 'uiprefswork',
|
||||
'table_uiprefs' => 'table_uiprefs',
|
||||
'trackingwork' => false,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user