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>2020-01-01 00:33:50 +0300
committerGitHub <noreply@github.com>2020-01-01 00:33:50 +0300
commit38d342a178e06b050fdf4abcadcb94090a0e0479 (patch)
tree0534040a53fcfe238466c882513204087595401b /tests/PHPUnit/Integration
parent0f88558b329d21c7739673c18826df2475850ffa (diff)
Fix build (#15334)
* test no longer relevant * update submodule * fix integration test * Do not forward query params for Goals.getMetrics inner API call.
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r--tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php b/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php
index 36365b7c49..e5d60efddd 100644
--- a/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php
+++ b/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php
@@ -201,39 +201,6 @@ class ArchiveInvalidatorTest extends IntegrationTestCase
$this->assertSame($expected, $reports);
}
- public function test_markArchivesAsInvalidated_shouldSkipArchivingForInProgressSites()
- {
- /** @var ArchivingStatus $archivingStatus */
- $archivingStatus = StaticContainer::get(ArchivingStatus::class);
-
- $params = new Parameters(new Site(7), Factory::build('month', '2012-02-03'), new Segment('', [2]));
- $archivingStatus->archiveStarted($params);
-
- $params = new Parameters(new Site(5), Factory::build('day', '2012-02-03'), new Segment('', [7]));
- $archivingStatus->archiveStarted($params);
-
- $this->rememberReportsForManySitesAndDates();
-
- $idSites = array(2, 10, 7, 5);
- $dates = array(
- Date::factory('2014-04-05'),
- Date::factory('2014-04-08'),
- Date::factory('2014-05-05'),
- );
-
- $this->invalidator->markArchivesAsInvalidated($idSites, $dates, 'week');
- $reports = $this->invalidator->getRememberedArchivedReportsThatShouldBeInvalidated();
-
- $expected = array(
- '2014-04-05' => [1,4,7],
- '2014-04-06' => [3],
- '2014-05-05' => [5],
- '2014-04-08' => [7],
- '2014-05-08' => [7],
- );
- $this->assertSame($expected, $reports);
- }
-
private function rememberReport($idSite, $date)
{
$date = Date::factory($date);