From 974a948d0ed4cfc83704f041d7c0ae51a91ae99b Mon Sep 17 00:00:00 2001 From: Thalia Date: Fri, 1 Feb 2019 20:47:58 -0800 Subject: [PATCH] Prevent special block test failures with certain configs The checkbox for preventing a user from editing their own talk page is only present for partial blocks if wgBlockAllowsUTEdit is true, so set it to true for any tests that check for its presence. Change-Id: I0228f5787ad17130cbe015641c1142a7e52cef38 --- tests/phpunit/includes/specials/SpecialBlockTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/includes/specials/SpecialBlockTest.php b/tests/phpunit/includes/specials/SpecialBlockTest.php index 55a8b66e57..0643e0e5ad 100644 --- a/tests/phpunit/includes/specials/SpecialBlockTest.php +++ b/tests/phpunit/includes/specials/SpecialBlockTest.php @@ -29,6 +29,7 @@ class SpecialBlockTest extends SpecialPageTestBase { public function testGetFormFields() { $this->setMwGlobals( [ 'wgEnablePartialBlocks' => false, + 'wgBlockAllowsUTEdit' => true, ] ); $page = $this->newSpecialPage(); $wrappedPage = TestingAccessWrapper::newFromObject( $page ); @@ -71,6 +72,7 @@ class SpecialBlockTest extends SpecialPageTestBase { public function testMaybeAlterFormDefaults() { $this->setMwGlobals( [ 'wgEnablePartialBlocks' => false, + 'wgBlockAllowsUTEdit' => true, ] ); $block = $this->insertBlock(); -- 2.20.1