diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-10-14 18:01:12 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-01-10 18:19:42 +0300 |
commit | 28ad63c96916ac1f81b7266faab65d3e7c9205ef (patch) | |
tree | 73ec877706950df435c43b30428356d0430bc724 /test | |
parent | eb9bcbc040ace2a99375fb043c7de4f44533ea10 (diff) |
Create `PhpMyAdmin\Crypto\Crypto` class to handle encryptions
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/Config/PageSettingsTest.php | 1 | ||||
-rw-r--r-- | test/classes/Controllers/Server/ServerDatabasesControllerTest.php | 1 | ||||
-rw-r--r-- | test/classes/Display/ResultsTest.php | 1 | ||||
-rw-r--r-- | test/classes/FooterTest.php | 1 | ||||
-rw-r--r-- | test/classes/InsertEditTest.php | 1 | ||||
-rw-r--r-- | test/classes/Navigation/NavigationTreeTest.php | 1 | ||||
-rw-r--r-- | test/classes/Plugins/Auth/AuthenticationCookieTest.php | 1 | ||||
-rw-r--r-- | test/classes/PmaTestCase.php | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/test/classes/Config/PageSettingsTest.php b/test/classes/Config/PageSettingsTest.php index 677336d323..98a84cba8d 100644 --- a/test/classes/Config/PageSettingsTest.php +++ b/test/classes/Config/PageSettingsTest.php @@ -26,6 +26,7 @@ class PageSettingsTest extends PmaTestCase public function setUp() { $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $GLOBALS['server'] = 1; $GLOBALS['db'] = 'db'; $GLOBALS['table'] = ''; diff --git a/test/classes/Controllers/Server/ServerDatabasesControllerTest.php b/test/classes/Controllers/Server/ServerDatabasesControllerTest.php index 8ff219ba60..2cfda9f14a 100644 --- a/test/classes/Controllers/Server/ServerDatabasesControllerTest.php +++ b/test/classes/Controllers/Server/ServerDatabasesControllerTest.php @@ -34,6 +34,7 @@ class ServerDatabasesControllerTest extends PmaTestCase //$GLOBALS $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $GLOBALS['PMA_Config']->enableBc(); $GLOBALS['db'] = 'db'; diff --git a/test/classes/Display/ResultsTest.php b/test/classes/Display/ResultsTest.php index f986883aac..fdeed4c78a 100644 --- a/test/classes/Display/ResultsTest.php +++ b/test/classes/Display/ResultsTest.php @@ -44,6 +44,7 @@ class ResultsTest extends PmaTestCase $GLOBALS['PMA_PHP_SELF'] = 'index.php'; $this->object = new DisplayResults('as', '', '', ''); $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $GLOBALS['PMA_Config']->enableBc(); $GLOBALS['text_dir'] = 'ltr'; $_SESSION[' HMAC_secret '] = 'test'; diff --git a/test/classes/FooterTest.php b/test/classes/FooterTest.php index 76704d9e36..cd6dc7f13b 100644 --- a/test/classes/FooterTest.php +++ b/test/classes/FooterTest.php @@ -46,6 +46,7 @@ class FooterTest extends PmaTestCase $GLOBALS['table'] = ''; $GLOBALS['text_dir'] = 'ltr'; $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $GLOBALS['PMA_Config']->enableBc(); $GLOBALS['cfg']['Server']['DisableIS'] = false; $GLOBALS['cfg']['Server']['verbose'] = 'verbose host'; diff --git a/test/classes/InsertEditTest.php b/test/classes/InsertEditTest.php index d274ca59b5..8ce35542da 100644 --- a/test/classes/InsertEditTest.php +++ b/test/classes/InsertEditTest.php @@ -62,6 +62,7 @@ class InsertEditTest extends TestCase $GLOBALS['cfg']['LoginCookieValidity'] = 1440; $GLOBALS['cfg']['enable_drag_drop_import'] = true; $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $this->insertEdit = new InsertEdit($GLOBALS['dbi']); } diff --git a/test/classes/Navigation/NavigationTreeTest.php b/test/classes/Navigation/NavigationTreeTest.php index 0149332035..f391db0459 100644 --- a/test/classes/Navigation/NavigationTreeTest.php +++ b/test/classes/Navigation/NavigationTreeTest.php @@ -43,6 +43,7 @@ class NavigationTreeTest extends PmaTestCase { $GLOBALS['server'] = 1; $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $GLOBALS['PMA_Config']->enableBc(); $GLOBALS['cfg']['Server']['host'] = 'localhost'; $GLOBALS['cfg']['Server']['user'] = 'root'; diff --git a/test/classes/Plugins/Auth/AuthenticationCookieTest.php b/test/classes/Plugins/Auth/AuthenticationCookieTest.php index fc5e034c20..060d0a0945 100644 --- a/test/classes/Plugins/Auth/AuthenticationCookieTest.php +++ b/test/classes/Plugins/Auth/AuthenticationCookieTest.php @@ -37,6 +37,7 @@ class AuthenticationCookieTest extends PmaTestCase function setUp() { $GLOBALS['PMA_Config'] = new Config(); + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); $GLOBALS['PMA_Config']->enableBc(); $GLOBALS['server'] = 0; $GLOBALS['text_dir'] = 'ltr'; diff --git a/test/classes/PmaTestCase.php b/test/classes/PmaTestCase.php index b2e72b7a51..889958347d 100644 --- a/test/classes/PmaTestCase.php +++ b/test/classes/PmaTestCase.php @@ -28,6 +28,7 @@ class PmaTestCase extends TestCase { require 'libraries/config.default.php'; $GLOBALS['cfg'] = $cfg; + $GLOBALS['PMA_Config']->set('URLQueryEncryption', false); } /** |