Skip to content

Commit

Permalink
(tests) Skip test of $wgCompressRevisions when using PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspec committed Dec 30, 2024
1 parent 6b00dd5 commit 835cf58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/phpunit/EventCalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<p>$pageText</p>";

Expand Down

0 comments on commit 835cf58

Please sign in to comment.