Skip to content

Commit d5634fc

Browse files
committed
skip test for older versions as numbers have changed
1 parent afa3045 commit d5634fc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Piwik\Db;
1818
use Piwik\Tests\Framework\TestCase\SystemTestCase;
1919
use Piwik\Plugins\CustomVariables\tests\Fixtures\TwoVisitsWithCustomVariables;
20+
use Piwik\Version;
2021

2122
/**
2223
* Tests use of custom variable segments.
@@ -77,6 +78,10 @@ public function getApiForTesting()
7778
*/
7879
public function testCheck()
7980
{
81+
if (version_compare(Version::VERSION, '5.4.0-b3', '<')) {
82+
self::markTestSkipped('archive numbers have changed');
83+
}
84+
8085
// TODO: if we do this in archivewriter, we don't need this code
8186
$archivePurger = StaticContainer::get(ArchivePurger::class);
8287
$archivePurger->purgeInvalidatedArchivesFrom(Date::factory(self::$fixture->dateTime));
@@ -128,6 +133,10 @@ public function testCheck()
128133
*/
129134
public function test_checkArchiveRecords_shouldMergeSubtablesIntoOneRow()
130135
{
136+
if (version_compare(Version::VERSION, '5.4.0-b3', '<')) {
137+
self::markTestSkipped('archive numbers have changed');
138+
}
139+
131140
$chunk = new Chunk();
132141

133142
$tests = array(

0 commit comments

Comments
 (0)