Skip to content

Commit

Permalink
Fix ServerBinlogControllerTest global dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
  • Loading branch information
MauricioFauth committed Dec 20, 2017
1 parent 0881b31 commit fc993f5
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -10,6 +10,7 @@
use PhpMyAdmin\Controllers\Server\ServerBinlogController;
use PhpMyAdmin\Di\Container;
use PhpMyAdmin\Tests\PmaTestCase;
use PhpMyAdmin\Tests\Stubs\Response as ResponseStub;
use PhpMyAdmin\Theme;
use PhpMyAdmin\Util;
use ReflectionClass;
Expand Down Expand Up @@ -43,8 +44,10 @@ public function setUp()
$GLOBALS['cfg']['TableNavigationLinksMode'] = 'icons';
$GLOBALS['cfg']['LimitChars'] = 100;

$GLOBALS['db'] = 'db';
$GLOBALS['table'] = "table";
$GLOBALS['pmaThemeImage'] = 'image';
$GLOBALS['PMA_PHP_SELF'] = 'index.php';

//$_SESSION

Expand All @@ -62,6 +65,9 @@ public function setUp()
->will($this->returnValue($binary_log_file_names));
$container = Container::getDefaultContainer();
$container->set('dbi', $dbi);
$this->_response = new ResponseStub();
$container->set('PhpMyAdmin\Response', $this->_response);
$container->alias('response', 'PhpMyAdmin\Response');
}

/**
Expand Down

0 comments on commit fc993f5

Please sign in to comment.