Fix bug when renaming tables with config storage enabled
[phpmyadmin.git] / test / bootstrap-static.php
blob9ff7b45b4113c8bbadb41b4b2968cad5f422538d
1 <?php
2 /**
3 * Bootstrap file for psalm
5 * The checks for defined are because psalm --alter can use this file multiple times
6 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Config\Settings;
12 if (! defined('ROOT_PATH')) {
13 // phpcs:disable PSR1.Files.SideEffects
14 define('ROOT_PATH', dirname(__DIR__) . DIRECTORY_SEPARATOR);
15 // phpcs:enable
18 // phpcs:disable PSR1.Files.SideEffects
19 if (! defined('PHPMYADMIN')) {
20 define('PHPMYADMIN', true);
23 if (! defined('TESTSUITE')) {
24 define('TESTSUITE', true);
27 // phpcs:enable
29 include_once ROOT_PATH . 'examples/signon-script.php';
30 require_once ROOT_PATH . 'libraries/constants.php';
31 require_once AUTOLOAD_FILE;
33 $settings = new Settings([]);
34 $GLOBALS['cfg'] = $settings->toArray();
35 $GLOBALS['server'] = 0;
37 // phpcs:disable PSR1.Files.SideEffects
38 if (! defined('PMA_PATH_TO_BASEDIR')) {
39 define('PMA_PATH_TO_BASEDIR', '');
42 // phpcs:enable
44 // for PhpMyAdmin\Plugins\Import\ImportLdi
45 $GLOBALS['plugin_param'] = 'table';