Skip to content

Commit

Permalink
PLATFORM-9061| fix CargoQueryIntegrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
harnash authored and mszabo-wikia committed Feb 14, 2024
1 parent dbc2826 commit 9f415db
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {
Expand Down Expand Up @@ -47,8 +49,8 @@ public function testSimpleQuery(): void {
$output = $this->getQueryOutput( $query );

$this->assertXmlStringEqualsXmlString(
'<p><a href="/index.php/A_Test" title="A Test">A Test</a>, '
. '<a href="/index.php/Lorem_Ipsum" title="Lorem Ipsum">Lorem Ipsum</a></p>',
'<p><a href="cargotest/A_Test" title="A Test">A Test</a>, '
. '<a href="cargotest/Lorem_Ipsum" title="Lorem Ipsum">Lorem Ipsum</a></p>',
$output
);
}
Expand Down

0 comments on commit 9f415db

Please sign in to comment.