wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Tim Starling 820f46964f A service for read-only mode
Introduce a service to represent wfReadOnly() and friends.

It's necessary to have two service instances, one for wfReadOnly() and
one for wfConfiguredReadOnlyReason(), to avoid a circular dependency,
since LoadBalancer needs the configured reason during construction, but
wfReadOnly() needs to query the currently active load balancer.

Not having a cache of the configuration makes it possible to dynamically
change the configuration. Ideally things would not change the
configuration, and I removed such instances in core, but to support
extensions, I added a test ensuring that the configuration can be changed.

Change-Id: I9bbee946c10742526d3423208efd68cb3cc5a7ee
2017-04-19 12:27:06 -07:00
..
GlobalTest.php A service for read-only mode 2017-04-19 12:27:06 -07:00
GlobalWithDBTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
README
wfAppendQueryTest.php Support hash fragments in wfAppendQuery() 2016-05-02 19:18:24 -07:00
wfArrayPlus2dTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfAssembleUrlTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfBaseNameTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfBCP47Test.php Use HTTPS instead of HTTP for ietf.org URLs 2016-09-28 18:05:53 +02:00
wfEscapeShellArgTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfExpandUrlTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfGetCallerTest.php Use the frame 'type' in wfFormatStackFrame, like MWExceptionHandler::prettyPrintTrace 2015-10-14 16:40:02 +01:00
wfParseUrlTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfRemoveDotSegmentsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfShellExecTest.php Fix race condition in wfShellExec() 2014-07-21 23:21:23 -07:00
wfShorthandToIntegerTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
wfThumbIsStandardTest.php Override MediaHandlers in tests using MediaWikiServices 2016-08-03 16:47:46 -07:00
wfTimestampTest.php tests: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 02:14:34 +00:00
wfUrlencodeTest.php Remove empty lines from PHP and JavaScript comment blocks 2016-12-09 09:01:06 +00:00

This directory hold tests for includes/GlobalFunctions.php file
which is a pile of functions.