Fix TransformationsTest.php
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
50d6d626f2
commit
5b53f34ea4
@ -16734,21 +16734,6 @@ parameters:
|
||||
count: 2
|
||||
path: tests/unit/Tracking/TrackingTest.php
|
||||
|
||||
-
|
||||
message: '''
|
||||
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
|
||||
Use dependency injection instead\.$#
|
||||
'''
|
||||
identifier: staticMethod.deprecated
|
||||
count: 1
|
||||
path: tests/unit/TransformationsTest.php
|
||||
|
||||
-
|
||||
message: '#^Property PhpMyAdmin\\Config\:\:\$settings \(array\{PmaAbsoluteUri\: string, AuthLog\: string, AuthLogSuccess\: bool, PmaNoRelation_DisableWarning\: bool, SuhosinDisableWarning\: bool, LoginCookieValidityDisableWarning\: bool, ReservedWordDisableWarning\: bool, TranslationWarningThreshold\: int, \.\.\.\}\) does not accept array\{ServerDefault\: 1, ActionLinksMode\: ''icons''\}\.$#'
|
||||
identifier: assign.propertyType
|
||||
count: 1
|
||||
path: tests/unit/TransformationsTest.php
|
||||
|
||||
-
|
||||
message: '''
|
||||
#^Call to deprecated method getInstance\(\) of class PhpMyAdmin\\Config\:
|
||||
|
||||
@ -10722,12 +10722,6 @@
|
||||
</MixedArrayAccess>
|
||||
</file>
|
||||
<file src="tests/unit/TransformationsTest.php">
|
||||
<DeprecatedMethod>
|
||||
<code><![CDATA[Config::getInstance()]]></code>
|
||||
</DeprecatedMethod>
|
||||
<InvalidPropertyAssignmentValue>
|
||||
<code><![CDATA[['ServerDefault' => 1, 'ActionLinksMode' => 'icons']]]></code>
|
||||
</InvalidPropertyAssignmentValue>
|
||||
<PossiblyInvalidArgument>
|
||||
<code><![CDATA[testFixup]]></code>
|
||||
<code><![CDATA[testFixup]]></code>
|
||||
|
||||
@ -4,10 +4,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Tests;
|
||||
|
||||
use PhpMyAdmin\Config;
|
||||
use PhpMyAdmin\ConfigStorage\Relation;
|
||||
use PhpMyAdmin\ConfigStorage\RelationParameters;
|
||||
use PhpMyAdmin\Current;
|
||||
use PhpMyAdmin\Dbal\DatabaseInterface;
|
||||
use PhpMyAdmin\Tests\Stubs\DummyResult;
|
||||
use PhpMyAdmin\Transformations;
|
||||
@ -28,17 +26,6 @@ class TransformationsTest extends AbstractTestCase
|
||||
parent::setUp();
|
||||
|
||||
$dbi = DatabaseInterface::$instance = $this->createDatabaseInterface();
|
||||
Current::$table = 'table';
|
||||
Current::$database = 'db';
|
||||
$config = Config::getInstance();
|
||||
$config->settings = ['ServerDefault' => 1, 'ActionLinksMode' => 'icons'];
|
||||
$config->selectedServer['pmadb'] = 'pmadb';
|
||||
$config->selectedServer['user'] = 'user';
|
||||
$config->selectedServer['bookmarktable'] = '';
|
||||
$config->selectedServer['relation'] = '';
|
||||
$config->selectedServer['table_info'] = '';
|
||||
$config->selectedServer['table_coords'] = '';
|
||||
$config->selectedServer['column_info'] = 'column_info';
|
||||
|
||||
$this->transformations = new Transformations($dbi, new Relation($dbi));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user