diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-12-08 10:28:40 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-12-08 10:28:40 +0400 |
commit | ab7df85f6be1697f1d918f2d63ae123c910ac39e (patch) | |
tree | e7e630b1e679a52cd9bbdab0da127838cf5eef48 /tests/PHPUnit/proxy/piwik.php | |
parent | 93d5d1f7df2046bd60685d4e9792e8c9e48abd00 (diff) |
Tests will load plugins which are bundled with core.
Before it was loading everything from plugins/* directory, causing tests to fail when tests plugins are there.
Diffstat (limited to 'tests/PHPUnit/proxy/piwik.php')
-rwxr-xr-x | tests/PHPUnit/proxy/piwik.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/PHPUnit/proxy/piwik.php b/tests/PHPUnit/proxy/piwik.php index 3679cdd7a9..5a3f82df0a 100755 --- a/tests/PHPUnit/proxy/piwik.php +++ b/tests/PHPUnit/proxy/piwik.php @@ -7,8 +7,6 @@ * */ -// Wrapping the request inside ob_start() calls to ensure that the Test -// calling us waits for the full request to process before unblocking use Piwik\Config; use Piwik\DataTable\Manager; use Piwik\Option; @@ -17,23 +15,13 @@ use Piwik\Site; use Piwik\Tracker; use Piwik\Tracker\Cache; - require realpath(dirname(__FILE__)) . "/includes.php"; +// Wrapping the request inside ob_start() calls to ensure that the Test +// calling us waits for the full request to process before unblocking ob_start(); -// Config files forced to use the test database -// Note that this also provides security for Piwik installs containing tests files: -// this proxy will not record any data in the production database. Config::getInstance()->setTestEnvironment(); -Config::getInstance()->PluginsInstalled['PluginsInstalled'] = array(); -try { - $trackerPlugins = Config::getInstance()->Plugins_Tracker['Plugins_Tracker']; -}catch(Exception $e) { - $trackerPlugins = array(); -} -$trackerPlugins[] = 'DevicesDetection'; -Config::getInstance()->Plugins_Tracker['Plugins_Tracker'] = $trackerPlugins; GeoIp::$geoIPDatabaseDir = 'tests/lib/geoip-files'; Tracker::setTestEnvironment(); |