From 835cf5819537b70462d3291b9bac0550fbb53785 Mon Sep 17 00:00:00 2001 From: Edward Chernenko Date: Mon, 30 Dec 2024 10:28:06 +0300 Subject: [PATCH] (tests) Skip test of $wgCompressRevisions when using PostgreSQL --- tests/phpunit/EventCalendarTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/phpunit/EventCalendarTest.php b/tests/phpunit/EventCalendarTest.php index 4b483e0..5fef76e 100644 --- a/tests/phpunit/EventCalendarTest.php +++ b/tests/phpunit/EventCalendarTest.php @@ -752,6 +752,12 @@ public function testSnippetCacheWasUsed() { * Verify that symbols= parameter works if $wgCompressRevisions=true. */ public function testSnippetForCompressedRevision() { + $dbw = $this->getServiceContainer()->getDBLoadBalancer()->getConnection( DB_PRIMARY ); + if ( $dbw->getType() === 'postgres' ) { + $this->markTestSkipped( + 'MediaWiki itself doesn\'t seem to support $wgCompressRevisions with PostgreSQL.' ); + } + $pageText = 'Expected snippet'; $expectedSnippet = "

$pageText

";