From 9f415db430a162ac75cbf7158072e258abb69162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Harasimowicz?= Date: Tue, 13 Feb 2024 13:44:54 +0100 Subject: [PATCH] PLATFORM-9061| fix CargoQueryIntegrationTest --- .../parserfunctions/CargoQueryIntegrationTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/integration/parserfunctions/CargoQueryIntegrationTest.php b/tests/phpunit/integration/parserfunctions/CargoQueryIntegrationTest.php index e5715c85..8282cf09 100644 --- a/tests/phpunit/integration/parserfunctions/CargoQueryIntegrationTest.php +++ b/tests/phpunit/integration/parserfunctions/CargoQueryIntegrationTest.php @@ -15,6 +15,8 @@ class CargoQueryIntegrationTest extends MediaWikiIntegrationTestCase { protected function setUp(): void { parent::setUp(); + $this->setMwGlobals( [ 'wgArticlePath' => 'cargotest/$1' ] ); + // Prepare some basic fixture data that is likely to be used by several test cases. $fixtureTemplate = Title::makeTitle( NS_TEMPLATE, 'Books' ); if ( !$fixtureTemplate->exists() ) { @@ -47,8 +49,8 @@ public function testSimpleQuery(): void { $output = $this->getQueryOutput( $query ); $this->assertXmlStringEqualsXmlString( - '

A Test, ' - . 'Lorem Ipsum

', + '

A Test, ' + . 'Lorem Ipsum

', $output ); }