wiki.techinc.nl/tests/phpunit/includes
Thalia c5991f614f Move cookie-blocking methods to BlockManager
Move the cookie blocking logic into one place. Specifically, move
these methods to the BlockManager:
* User::trackBlockWithCookie
* DatabaseBlock::setCookie
* DatabaseBlock::clearCookie
* DatabaseBlock::getCookieValue
* DatabaseBlock::getIdFromCookieValue
* AbstractBlock::shouldTrackWithCookie

After this, BlockManager::trackBlockWithCookie should be called to
track a block, and BlockManager::clearBlockCookie should be called
to unset the cookie. The other methods in the above list are
helper methods that are made private or marked internal.

Also update places in core that call User::trackBlockWithCookie to
BlockManager::trackBlockWithCookie

Bug: T225141
Change-Id: I818962c6932c01c841a549a101637e00a7593e48
2019-06-11 15:08:21 +01:00
..
actions Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
api Merge "Add action=query&meta=languageinfo API module" 2019-06-04 20:03:38 +00:00
auth Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
block Move cookie-blocking methods to BlockManager 2019-06-11 15:08:21 +01:00
cache Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
changes Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
changetags Fix ChangeTagsTest failing on Postgres 2019-03-15 10:10:33 +01:00
collation
composer
config tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
content Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
context
db Remove DatabaseSqliteMock unit test class in favor of mocking 2019-06-05 22:25:46 +01:00
debug logger: Produce traces for all Throwables 2019-05-23 10:39:39 -04:00
deferred Introduce TransactionRoundAwareUpdate interface 2019-05-25 02:33:05 +00:00
diff Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception
externalstore
filebackend tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
filerepo Make RepoGroup a service instead of singleton 2019-05-06 13:57:40 +03:00
GlobalFunctions tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
htmlform Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
http Add tests for HttpRequestFactoryTest. 2019-05-13 14:32:23 +02:00
import Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
installer Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
interwiki Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
jobqueue Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
json Finish FormatJson::encode() test coverage 2019-02-02 22:04:35 -08:00
libs Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker Update LinkRenderer to use NamespaceInfo 2019-05-07 14:52:17 +02:00
logging Linker: Use parentheses by default in userToolLinksRedContribs() 2019-04-19 15:09:36 -07:00
mail
media Remove broken explode() from MediaWikiMediaTestCase::dataFile() 2019-03-28 23:01:27 +00:00
Navigation Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
objectcache Add additional configuation parameters to RESTBagOStuff 2019-05-21 08:07:44 -05:00
page Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
pager
parser Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
password Hard deprecate Password::equals() 2019-04-12 18:39:14 -07:00
Permissions Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
poolcounter Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
preferences Update DefaultPreferencesFactory to use NamespaceInfo 2019-05-06 12:19:13 +03:00
rcfeed
registration registration: Add development requirements to extension.json 2019-05-22 01:59:33 -07:00
resourceloader Use ExtensionRegistry::setAttributeForTest() instead of Reflection 2019-06-02 21:08:07 -04:00
Revision Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
search Fix order of @var parameter in PHP 2019-04-08 18:37:56 +02:00
session Fixed typo 'implments' and 'implmented' 2019-03-21 16:17:09 +01:00
shell Remove covers validator trait where it is not needed 2019-05-17 16:49:31 +02:00
site Avoid usage of deprecated wfGetMainCache() function 2019-04-28 20:41:17 +01:00
skins
sparql Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
specialpage Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
specials Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
Storage Alter two uses of hasOrMadeRecentMasterChanges() for consistency 2019-04-23 11:34:09 -07:00
tidy Remove references to Html5Depurate 2019-03-13 16:33:37 -05:00
title Fix empty auto-summaries triggering a fatal error. 2019-05-30 16:34:34 +02:00
upload Add missing empty lines between methods 2019-01-15 19:14:35 +00:00
user Move cookie-blocking methods to BlockManager 2019-06-11 15:08:21 +01:00
utils Better detection for old MS Office files 2019-01-23 09:23:17 +11:00
watcheditem Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
ActorMigrationTest.php Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Fix CommentStoreComment RawMessage construction 2019-02-13 11:17:10 -05:00
CommentStoreTest.php Add missing use for IMaintainableDatabase 2019-02-20 20:57:18 +01:00
CommentStoreTest.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ContentSecurityPolicyTest.php Make RepoGroup a service instead of singleton 2019-05-06 13:57:40 +03:00
DeprecatedGlobalTest.php
DerivativeRequestTest.php Fix IP handling in DerivativeRequest 2018-10-31 20:34:58 -07:00
DiffHistoryBlobTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
EditPageTest.php EditPage: Migrate Title::userCan() calls to PermissionManager 2019-05-18 20:49:21 +02:00
ExportTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
ExtraParserTest.php During special page transclusion, save and restore context's WikiPage too 2018-10-19 22:19:52 +02:00
FauxRequestTest.php FauxRequest: Remove influence from $wgRequest on getFullRequestURL() 2019-04-20 00:57:49 +01:00
FauxResponseTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
FormOptionsInitializationTest.php Use TestingAccessWrapper in FormOptionsInitializationTest 2019-01-29 21:33:42 -08:00
FormOptionsTest.php Remove "Squiz.WhiteSpace.FunctionSpacing" from phpcs exclusions 2019-05-11 02:44:26 +01:00
GitInfoTest.php Allow tests to run with a non-writable source tree 2018-08-30 10:48:50 +10:00
HooksTest.php Drop wfRunHooks, deprecated since 1.25 2018-10-10 15:30:00 -07:00
HtmlTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
LicensesTest.php
LinkerTest.php Make userLink() not fail too hard on false and null. 2019-06-05 14:51:57 +02:00
LinkFilterTest.php Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
ListToggleTest.php
MagicWordFactoryTest.php Simplify by using ?: operator 2019-04-15 15:05:00 +02:00
MediaWikiServicesTest.php Remove CryptRand and related stuff 2019-04-11 18:20:09 +01:00
MediaWikiTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
MediaWikiVersionFetcherTest.php Remove covers validator trait where it is not needed 2019-05-17 16:49:31 +02:00
MergeHistoryTest.php MergeHistory: Fix flaky test due to relative timestamp 2018-08-15 02:16:02 +01:00
MessageTest.php Remove all $wgParser use from core 2019-04-17 15:16:50 +03:00
MovePageTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php Remove usage of deprecated SkinFactory::getDefaultInstance() 2019-06-02 21:08:07 -04:00
PagePropsTest.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
PathRouterTest.php Avoid a redirect loop when the request URL is not normalized 2018-07-16 15:55:59 +10:00
PrefixSearchTest.php Reset services before every test 2018-09-03 16:38:58 +00:00
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
RevisionMcrDbTest.php Allow getRevisionText to function without the text table. 2018-10-17 10:54:39 -04:00
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
RevisionNoContentModelDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionPreMcrDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionTest.php Default $wgActorTableSchemaMigrationStage to SCHEMA_COMPAT_NEW 2019-05-01 00:48:54 +00:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Fix typo in tests/includes/SampleTest.php in core 2018-11-02 12:55:09 +00:00
SanitizerValidateEmailTest.php
ServiceWiringTest.php Sort MediaWikiServices and ServiceWiring alphabetically 2019-04-10 20:59:49 +10:00
SiteConfigurationTest.php
SiteStatsTest.php jobqueue: add GenericParameterJob and RunnableJob interface 2019-04-08 11:05:23 -07:00
StatusTest.php
SystemBlockTest.php Separate Block into AbstractBlock, Block and SystemBlock 2019-05-07 17:36:31 -05:00
TemplateCategoriesTest.php Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
TemplateParserTest.php TemplateParser: Pass FLAG_MUSTACHELOOKUP to enable parent context access 2018-09-04 12:39:34 -07:00
TestLogger.php Fix PhanTypeMismatchDeclaredParam 2018-07-07 00:34:30 +00:00
TestUser.php Password: replace equals() with verify() 2019-01-24 13:40:40 -08:00
TestUserRegistry.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
TimeAdjustTest.php Mass conversion of $wgContLang to service 2018-08-11 22:44:29 -06:00
TitleArrayFromResultTest.php
TitleMethodsTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
TitlePermissionTest.php Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
TitleTest.php Revert "Factors out permissions check from User into PermissionManager service" 2019-05-30 13:51:37 +00:00
WebRequestTest.php Rename CDN config variables to be generic, deprecating the old names 2019-05-24 21:09:22 +00:00
WikiMapTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
WikiReferenceTest.php
XmlJsTest.php
XmlSelectTest.php
XmlTest.php ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00