From 4108381175099e0847475834b439dfe63c616833 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 24 Oct 2018 20:34:41 -0700 Subject: [PATCH] Make testFormatValueRestrictions() account for $wgArticlePath to avoid failures Follows-up 170c49d61cb84411. Change-Id: I37a57b5ece939c5743b7d08d02ce41c71daee5eb --- .../includes/specials/pagers/BlockListPagerTest.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php b/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php index a05cbbd545..80df1d0866 100644 --- a/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php +++ b/tests/phpunit/includes/specials/pagers/BlockListPagerTest.php @@ -111,6 +111,8 @@ class BlockListPagerTest extends MediaWikiTestCase { * @covers ::formatValue */ public function testFormatValueRestrictions() { + $this->setMwGlobals( 'wgArticlePath', '/wiki/$1' ); + $pager = new BlockListPager( new SpecialPage(), [] ); $row = (object)[ @@ -140,10 +142,11 @@ class BlockListPagerTest extends MediaWikiTestCase { $formatted = $pager->formatValue( 'ipb_params', '' ); $this->assertEquals( '