Skip to content

Commit

Permalink
Maybe this helps the UI tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Feb 20, 2015
1 parent 50a5eae commit 405eece
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/PHPUnit/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
// setup container for tests
StaticContainer::setEnvironment('test');

\Piwik\Config::getInstance()->setTestEnvironment();

// require test fixtures
$fixturesToLoad = array(
'/tests/UI/Fixtures/*.php',
Expand All @@ -60,7 +62,6 @@

function prepareServerVariables()
{
\Piwik\Config::getInstance()->init();
$testConfig = \Piwik\Config::getInstance()->tests;

if ('@REQUEST_URI@' === $testConfig['request_uri']) {
Expand Down

0 comments on commit 405eece

Please sign in to comment.