wiki.techinc.nl/tests
Thalia 5310373336 Stop accessing User::mBlock and User::mBlockedby from tests
Update PermissionManagerTest and FormSpecialPageTestCase to use a
mock User object that returns a specified block.

Before this commit, these tests manipulate the public properties
User::mBlock and User::mBlockedby in order to change the user's
block. There is no advantage to doing this over mocking: it is not
more realistic, and is sensitive to changes in the code. These tests
need updating in order to deprecate public access to these properties
(see T229035).

Also, PermissionManager::testUserBlock is a large, complicated method
that tests three different things, so split it into three smaller
methods, each testing one thing:
* testCheckUserBlockActions: A blocked user is blocked/unblocked
  correctly from certain actions, depending on their block.
* testCheckUserBlockMessage: The correct block message key and
  parameters are returned, depending on the block.
* testCheckUserBlockEmailConfirmToEdit: A user is or isn't asked to
  provide email confirmation in order to edit, as specified by the
  config.

Change-Id: I0bb9252b476131c2b255d4c503c0dab5dfff94be
2019-10-15 15:05:53 +00:00
..
common Split some Language methods to LanguageNameUtils 2019-10-07 15:20:52 -07:00
integration/includes Remove CurlHttpRequestTest::testCurlConstants() 2019-10-12 13:50:33 -07:00
parser Parser fuzzTest: Stop trying to call hphpd_break, we don't run on HHVM any more 2019-10-11 17:15:44 +00:00
phan Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
phpunit Stop accessing User::mBlock and User::mBlockedby from tests 2019-10-15 15:05:53 +00:00
qunit jquery.accessKeyLabel: Remove unused code for unsupported browsers 2019-10-09 18:43:53 +00:00
selenium Merge "eslint: Use correct global values, and use jquery rules in selenium tests" 2019-10-08 21:45:33 +00:00
.htaccess