diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2023-11-15 20:11:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2023-11-15 20:11:10 +0000 |
commit | efa0ef4fe0587ea06c57b4a1948a2fd2306890c9 (patch) | |
tree | 2145166fee846f36a976b6294b7f5898ceee61ed /tests/phpunit/includes/Request | |
parent | d137f3bc46ab1deed7c2acaa879fcdadd97c7a5f (diff) | |
parent | 81cf4fe95e727964c38127685bbf8996a098a280 (diff) | |
download | mediawikicore-efa0ef4fe0587ea06c57b4a1948a2fd2306890c9.tar.gz mediawikicore-efa0ef4fe0587ea06c57b4a1948a2fd2306890c9.zip |
Merge "ContentSecurityPolicy: Clear hooks during tests"
Diffstat (limited to 'tests/phpunit/includes/Request')
-rw-r--r-- | tests/phpunit/includes/Request/ContentSecurityPolicyTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php b/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php index 3cd8bc43c47b..c2d781e260af 100644 --- a/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php +++ b/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php @@ -47,6 +47,10 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase { // Note, there are some obscure globals which // could affect the results which aren't included above. + $this->clearHook( 'ContentSecurityPolicyDefaultSource' ); + $this->clearHook( 'ContentSecurityPolicyScriptSource' ); + $this->clearHook( 'ContentSecurityPolicyDirectives' ); + $context = RequestContext::getMain(); $resp = $context->getRequest()->response(); $conf = $context->getConfig(); |