diff options
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r-- | plugins/DBStats/DBStats.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index 1f5f9d7609..5f16ed8451 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -11,6 +11,7 @@ namespace Piwik\Plugins\DBStats; use Piwik\Piwik; use Piwik\Plugins\CoreVisualizations\Visualizations\Graph; use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable; +use Piwik\Plugins\DBStats\tests\Mocks\MockDataAccess; class DBStats extends \Piwik\Plugin { @@ -35,8 +36,7 @@ class DBStats extends \Piwik\Plugin public function setupTestEnvironment($environment) { Piwik::addAction("MySQLMetadataProvider.createDao", function (&$dao) { - require_once dirname(__FILE__) . "/tests/Mocks/MockDataAccess.php"; - $dao = new Mocks\MockDataAccess(); + $dao = new MockDataAccess(); }); } } |