diff options
Diffstat (limited to 'tests/PHPUnit/Fixtures/UITestFixture.php')
-rw-r--r-- | tests/PHPUnit/Fixtures/UITestFixture.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Fixtures/UITestFixture.php b/tests/PHPUnit/Fixtures/UITestFixture.php index 493d4b72c1..5d13e025da 100644 --- a/tests/PHPUnit/Fixtures/UITestFixture.php +++ b/tests/PHPUnit/Fixtures/UITestFixture.php @@ -24,6 +24,7 @@ use Piwik\Plugin\Dimension\VisitDimension; use Piwik\Plugin\ProcessedMetric; use Piwik\Plugin\Report; use Piwik\Plugin\ViewDataTable; +use Piwik\Plugins\API\API; use Piwik\Plugins\GeoIp2\LocationProvider\GeoIp2; use Piwik\Plugins\Monolog\Handler\WebNotificationHandler; use Piwik\Plugins\PrivacyManager\IPAnonymizer; @@ -419,6 +420,9 @@ class UITestFixture extends SqlDump public function provideContainerConfig() { + // make sure there's data for the auto suggest test + API::$_autoSuggestLookBack = floor(Date::today()->getTimestamp() - Date::factory('2012-01-01')->getTimestamp()) / (24 * 60 * 60); + return [ 'observers.global' => \DI\add([ ['Report.addReports', function (&$reports) { |