From d3ec952a618206cdaedac35092757e0ac23201b6 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Mon, 5 Aug 2024 23:15:15 +0200 Subject: [PATCH] Disable BackwardsCompatibility1XTest for TiDb --- tests/PHPUnit/System/BackwardsCompatibility1XTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/PHPUnit/System/BackwardsCompatibility1XTest.php b/tests/PHPUnit/System/BackwardsCompatibility1XTest.php index 99c249183a7..14c0481eb10 100644 --- a/tests/PHPUnit/System/BackwardsCompatibility1XTest.php +++ b/tests/PHPUnit/System/BackwardsCompatibility1XTest.php @@ -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; @@ -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)