Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-02-20 09:16:14 +0300
committermattab <matthieu.aubry@gmail.com>2015-02-20 09:16:14 +0300
commit405eece8786477386fdd951a5b303ae57065e002 (patch)
treec417fe28ea41b4c7c9ab3dcd168fb54604f53f7e /tests/PHPUnit/bootstrap.php
parent50a5eaef4f60e5dd695b3c90df5520f9c8ee9b62 (diff)
Maybe this helps the UI tests?
Diffstat (limited to 'tests/PHPUnit/bootstrap.php')
-rw-r--r--tests/PHPUnit/bootstrap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PHPUnit/bootstrap.php b/tests/PHPUnit/bootstrap.php
index 9f3edd34b8..3a9cf799db 100644
--- a/tests/PHPUnit/bootstrap.php
+++ b/tests/PHPUnit/bootstrap.php
@@ -44,6 +44,8 @@ if (getenv('PIWIK_USE_XHPROF') == 1) {
// setup container for tests
StaticContainer::setEnvironment('test');
+\Piwik\Config::getInstance()->setTestEnvironment();
+
// require test fixtures
$fixturesToLoad = array(
'/tests/UI/Fixtures/*.php',
@@ -60,7 +62,6 @@ Locale::setDefaultLocale();
function prepareServerVariables()
{
- \Piwik\Config::getInstance()->init();
$testConfig = \Piwik\Config::getInstance()->tests;
if ('@REQUEST_URI@' === $testConfig['request_uri']) {