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:
authordiosmosis <diosmosis@users.noreply.github.com>2019-07-16 07:33:25 +0300
committerGitHub <noreply@github.com>2019-07-16 07:33:25 +0300
commite4c1f1f92114ca03947e9932935e4b4195ae1604 (patch)
tree86d3f38165ee87eb4c7f8a36dc8bdb779c04fb22 /tests/PHPUnit/Fixtures
parent75c4c9d3a8be5b9d035f086c3b2edb45afaed61a (diff)
Keep top level nb_visits_converted metric (#14253)
* Do not remove nb_visits_converted when archiving goal reports since it should differ from sum of conversions. * If metric is not available, compute dynamically by using max nb_visits_converted. * Ignore abandoned cart conversions when calculating visit converted. * In case goals column is empty. * remove processed metric code since it is not correct * do not remove visits converted metric for overview * fix tests * Fixing test * fix test * update test files * update submodules * Update expected screenshots & try to fix some random failures. * Update expected UI test export results. * two ui test fixes * Fix couple UI test failures. * fix random php test failure
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r--tests/PHPUnit/Fixtures/UITestFixture.php4
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) {