Skip to content

Commit

Permalink
Disable BackwardsCompatibility1XTest for TiDb
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored and mneudert committed Oct 9, 2024
1 parent e05b7d6 commit d3ec952
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/PHPUnit/System/BackwardsCompatibility1XTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Piwik\Tests\System;

use Piwik\Common;
use Piwik\Config\DatabaseConfig;
use Piwik\Db;
use Piwik\Plugin\Manager;
use Piwik\Plugins\VisitFrequency\API as VisitFrequencyApi;
Expand All @@ -34,6 +35,10 @@ public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();

if (DatabaseConfig::getConfigValue('schema') === 'Tidb') {
self::markTestSkipped('TiDb can only be used as of Matomo 5.2+, so updating from older versions is unsupported');
}

$installedPlugins = Manager::getInstance()->getInstalledPluginsName();

// ensure all plugins are installed correctly (some plugins database tables would be missing otherwise)
Expand Down

0 comments on commit d3ec952

Please sign in to comment.