wiki.techinc.nl/tests/phpunit/includes
Timo Tijhof 0980f94e13 resourceloader: Refactor CSP $nonce passing
Follows-up 70941efd35 which broke various public
signatures of the ClientHtml class that I'd prefer to handle
differently.

This commit mainly restores support for all previously public
signatures, and either removes the need for a parameter, or moves
it to the end of the original signature (as optional param).

* ClientHtml::getHeadHtml: Remove the positional/required parameter
  that was added. Restoring the method to being a stateless computer
  that requires no parameters. Pass the option via construct instead.

* ClientHtml::makeLoad:
  - Make $nonce optional.
  - Restore $extraQuery as optional.

* ResourceLoader::makeInlineScript: Document $nonce as optional
  (matching the implementation).

Change-Id: Iaf33f2a060048e6606fba8d875b6d2953b21ef45
2018-05-17 22:28:23 -07:00
..
actions build: Updating mediawiki/mediawiki-codesniffer to 17.0.0 2018-03-29 21:53:10 +02:00
api API: Introduce "templated parameters" 2018-05-16 16:19:31 -04:00
auth tests: Add some more @covers tags 2018-05-07 17:49:01 +00:00
cache Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
changes Remove @dataProvider and @covers from non-test functions 2018-03-18 22:22:43 +00:00
changetags Add new core tags 2017-11-30 10:29:58 -08:00
collation Merge "Add collation for Abkhaz (ab)" 2018-01-23 18:42:29 +00:00
composer tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
config tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
content RFC T157418: Trim whitespace in table cells, list items, headings 2018-03-16 13:42:55 -05:00
context
db Merge "rdbms: fix callback stage errors in LBFactory::commitMasterChanges" 2018-05-10 19:07:18 +00:00
debug Fix KafkaHandlerTest hack to work with PHPUnit 6 2018-04-12 09:49:54 -07:00
deferred rdbms: rename onTransactionIdle() to onTransactionCommitOrIdle() 2018-05-09 21:07:06 +00:00
diff Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
editpage Use Sanitizer::mergeAttributes when merging classes into attributes 2018-01-05 10:32:56 +01:00
exception Don't write exceptions to STDERR from BadTitleErrorTest or ThrottledErrorTest 2018-02-16 09:01:51 +00:00
externalstore build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
filebackend Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
filerepo Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
GlobalFunctions build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
htmlform build: Updating mediawiki/mediawiki-codesniffer to 17.0.0 2018-03-29 21:53:10 +02:00
http phpunit: Add some @covers and @large/@medium to integration tests 2018-03-20 09:14:34 -07:00
import build: Updating mediawiki/mediawiki-codesniffer to 17.0.0 2018-03-29 21:53:10 +02:00
installer Move @group and @covers tags in tests close to class 2018-01-28 13:30:07 +01:00
interwiki Move phpunit @group from file comment to class comment 2018-03-10 11:48:28 +01:00
jobqueue rdbms: rename CONN_TRX_AUTO constant to CONN_TRX_AUTOCOMMIT 2018-04-12 13:01:52 -07:00
json Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
libs rdbms: rename onTransactionIdle() to onTransactionCommitOrIdle() 2018-05-09 21:07:06 +00:00
linkeddata Remove various redundant '@license' tags in file headers 2018-01-12 18:15:11 +00:00
linker
logging Declare LogFormatter::$parsedParameters property 2018-05-01 19:56:13 -07:00
mail mail: Always quote uncoded names in MailAddress 2018-04-24 21:29:25 +00:00
media Move phpunit @group from file comment to class comment 2018-03-10 11:48:28 +01:00
objectcache build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
page tests: Assert that the user who deleted a page is logged as such 2018-04-26 00:49:00 +00:00
pager Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
parser Resolve used lazy options in ParserOptions::optionsHash() 2018-05-15 06:54:55 +00:00
password Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
poolcounter Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
preferences Merge "Special:Preferences: Create flag to enable OOjs UI" 2018-05-08 21:32:01 +00:00
rcfeed build: Updating mediawiki/mediawiki-codesniffer to 17.0.0 2018-03-29 21:53:10 +02:00
registration Merge "Handle extension dependencies in the installer" 2018-04-17 15:18:39 +00:00
resourceloader resourceloader: Refactor CSP $nonce passing 2018-05-17 22:28:23 -07:00
search build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
services tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
session Merge "Update suppressWarning()/restoreWarning() calls" 2018-02-11 22:06:29 +00:00
shell Deprecate wfShellWikiCmd() 2018-04-16 16:38:05 +00:00
site Replace wfGetLB 2018-05-02 22:30:24 +02:00
skins skins: Move default style modules to getDefaultModules 2018-05-04 23:52:02 +00:00
sparql tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
specialpage RCFilters: Convert patrolled filter to three states 2018-04-11 10:59:06 -07:00
specials Use OOUI form for 'clear' and 'raw edit' of watchlist 2018-04-30 19:06:26 +01:00
Storage Merge "[MCR] Introduce RevisionSlotsUpdate." 2018-05-09 13:27:08 +00:00
tidy tidy: Remove obsolete Depurate and Balancer drivers 2018-05-08 15:32:49 +00:00
title Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
upload Update declaration of UploadFromUrlTest::doApiRequest 2018-04-10 13:54:52 -07:00
user Merge "Add missing return types to User::getOption()" 2018-03-23 01:41:28 +00:00
utils Have ClassCollector ignore PHP 7 anonymous classes 2018-05-01 13:13:37 -04:00
watcheditem Use constants for rc_patrolled values instead of numbers 2018-04-13 23:56:35 +02:00
ActorMigrationTest.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
AutopromoteTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
BlockTest.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
CommentStoreTest.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ContentSecurityPolicyTest.php Initial support for Content Security Policy, disabled by default 2018-05-13 21:01:11 -07:00
DeprecatedGlobalTest.php
DiffHistoryBlobTest.php
EditPageTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ExportTest.php
ExtraParserTest.php Add 'unwrap' ParserOutput post-cache transform 2018-02-01 14:24:27 -08:00
FauxRequestTest.php tests: Enable PHPUnit 4/6 compat layer in some tests that need it 2018-04-07 19:31:24 -07:00
FauxResponseTest.php
FormOptionsInitializationTest.php
FormOptionsTest.php
GitInfoTest.php
HooksTest.php HooksTest: Covers Hooks::callHook too 2018-01-02 00:19:21 -08:00
HtmlTest.php Remove very, very old disabled test cases and todos 2017-12-28 18:44:31 +00:00
LicensesTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
LinkerTest.php Move @group and @covers tags in tests close to class 2018-01-28 13:30:07 +01:00
LinkFilterTest.php Add @covers tags to miscellaneous tests 2017-12-24 23:29:00 -08:00
ListToggleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
MediaWikiServicesTest.php MediaWikiServicesTest::testDisableStorageBackend: Make PHPUnit6 happy 2018-04-12 15:29:56 -07:00
MediaWikiTest.php
MediaWikiVersionFetcherTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
MergeHistoryTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
MessageTest.php Use wikimedia/object-factory 1.0.0 2018-02-04 12:52:44 -08:00
MovePageTest.php tests: Add some more @covers tags 2018-05-07 17:49:01 +00:00
MWNamespaceTest.php Don't rely on magic __call in MWNamespaceTest 2018-04-06 14:17:42 -07:00
MWTimestampTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
OutputPageTest.php Initial support for Content Security Policy, disabled by default 2018-05-13 21:01:11 -07:00
PageArchiveTest.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
PagePropsTest.php Add @covers tags to miscellaneous tests 2017-12-24 23:29:00 -08:00
PathRouterTest.php build: Updating mediawiki/mediawiki-codesniffer to 15.0.0 2018-01-01 14:10:16 +01:00
PreferencesTest.php Convert Preferences class into PreferencesFactory service 2018-01-03 09:48:25 +08:00
PrefixSearchTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
ReadOnlyModeTest.php
RevisionContentHandlerDbTest.php
RevisionDbTestBase.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
RevisionNoContentHandlerDbTest.php
RevisionTest.php Merge "Drop archive.ar_text and ar_flags" 2018-04-23 20:15:26 +00:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php tests: Add some more @covers tags 2018-05-07 17:49:01 +00:00
SanitizerValidateEmailTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
SiteConfigurationTest.php SiteConfiguration: Add test to confirm null as valid override 2018-04-24 18:31:30 +01:00
SiteStatsTest.php phpunit: Clear job queues in MediaWikiTestCase::setUp() 2018-04-24 00:46:19 +01:00
StatusTest.php RFC T157418: Trim whitespace in table cells, list items, headings 2018-03-16 13:42:55 -05:00
TemplateCategoriesTest.php Move phpunit @group from file comment to class comment 2018-03-10 11:48:28 +01:00
TemplateParserTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
TestLogger.php
TestUser.php
TestUserRegistry.php Test ApiUserrights 2018-04-12 21:26:02 +03:00
TimeAdjustTest.php
TitleArrayFromResultTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
TitleMethodsTest.php Add protection for User: JSON pages in the same manner as JS & CSS ones 2018-03-29 14:33:46 +00:00
TitlePermissionTest.php Add protection for User: JSON pages in the same manner as JS & CSS ones 2018-03-29 14:33:46 +00:00
TitleTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00
WebRequestTest.php Remove internal use of deprecated $wgRequestTime 2018-03-18 04:41:12 +00:00
WikiMapTest.php
WikiReferenceTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
XmlJsTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
XmlSelectTest.php
XmlTest.php Use ::class to resolve class names in tests 2018-01-26 22:49:13 +01:00