From: Thalia Date: Sat, 2 Feb 2019 04:47:58 +0000 (-0800) Subject: Prevent special block test failures with certain configs X-Git-Tag: 1.34.0-rc.0~2968 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=974a948d0ed4cfc83704f041d7c0ae51a91ae99b;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();