diff options
author | Zoltan Flamis <zoltan@innocraft.com> | 2021-05-07 05:03:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 05:03:03 +0300 |
commit | 1fcc10569378263775a1f8a3e2429406da9423ce (patch) | |
tree | aa80450b3bc334e420baf3239cfcb674c0cae9d3 /plugins/SegmentEditor/tests | |
parent | 39361b179efc476a81e391b886e0b3913b994499 (diff) |
Make archiving process to respect process_new_segments_from settings (#17351)
* update canSkipThisArchive in Loader
* Update Loader.php
* Update Loader.php
* make cronarchive respect segment creation
* check for null
* do not use force-date-last-n in test
* fix some other tests
* fix other test
* add deprecated message
* Update UITestFixture.php
* wip
* reafactor and add tests
* take into account requested report
* refactor if
* refactoring
* fix bug
Co-authored-by: Thomas Steur <tsteur@users.noreply.github.com>
Diffstat (limited to 'plugins/SegmentEditor/tests')
-rw-r--r-- | plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php b/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php index 28881d034e..35cd5ff10f 100644 --- a/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php +++ b/plugins/SegmentEditor/tests/System/UnprocessedSegmentsTest.php @@ -17,6 +17,7 @@ use Piwik\Plugins\SegmentEditor\API; use Piwik\Plugins\VisitsSummary; use Piwik\Tests\Fixtures\OneVisitorTwoVisits; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; +use Piwik\CronArchive\SegmentArchiving; /** * @group SegmentEditor @@ -257,6 +258,9 @@ class UnprocessedSegmentsTest extends IntegrationTestCase $previous->General['browser_archiving_disabled_enforce'] = 1; return $previous; }), + + SegmentArchiving::class => \DI\object() + ->constructorParameter('beginningOfTimeLastNInYears', 15) ]; } |