MediaWiki  master
ContentSecurityPolicyTest Class Reference
Inheritance diagram for ContentSecurityPolicyTest:
Collaboration diagram for ContentSecurityPolicyTest:

Public Member Functions

 providerCSPIsEnabled ()
 
 providerFalsePositiveBrowser ()
 
 providerMakeCSPDirectives ()
 
 providerPrepareUrlForCSP ()
 
 testCSPIsEnabled ( $main, $reportOnly, $expected)
 providerCSPIsEnabled ContentSecurityPolicy::isNonceRequired More...
 
 testEscapeUrlForCSP ()
 ContentSecurityPolicy::escapeUrlForCSP. More...
 
 testFalsePositiveBrowser ( $ua, $expected)
 providerFalsePositiveBrowser ContentSecurityPolicy::falsePositiveBrowser More...
 
 testGetAdditionalSelfUrlsRespectsUrlSettings ()
 ContentSecurityPolicy::getAdditionalSelfUrls. More...
 
 testGetHeaderName ()
 ContentSecurityPolicy::getHeaderName. More...
 
 testGetReportUri ()
 ContentSecurityPolicy::getReportUri. More...
 
 testMakeCSPDirectives ( $policy, $expectedFull, $expectedReport)
 providerMakeCSPDirectives ContentSecurityPolicy::makeCSPDirectives More...
 
 testMakeCSPDirectivesImage ()
 ContentSecurityPolicy::makeCSPDirectives. More...
 
 testMakeCSPDirectivesReportUri ()
 ContentSecurityPolicy::makeCSPDirectives. More...
 
 testPrepareUrlForCSP ( $url, $expected)
 providerPrepareUrlForCSP ContentSecurityPolicy::prepareUrlForCSP More...
 

Protected Member Functions

 setUp ()
 

Private Attributes

ContentSecurityPolicy $csp
 

Detailed Description

Definition at line 5 of file ContentSecurityPolicyTest.php.

Member Function Documentation

◆ providerCSPIsEnabled()

ContentSecurityPolicyTest::providerCSPIsEnabled ( )

Definition at line 309 of file ContentSecurityPolicyTest.php.

References false, and true.

◆ providerFalsePositiveBrowser()

ContentSecurityPolicyTest::providerFalsePositiveBrowser ( )

Definition at line 86 of file ContentSecurityPolicyTest.php.

References false, and true.

◆ providerMakeCSPDirectives()

ContentSecurityPolicyTest::providerMakeCSPDirectives ( )

Definition at line 113 of file ContentSecurityPolicyTest.php.

References false, and true.

◆ providerPrepareUrlForCSP()

ContentSecurityPolicyTest::providerPrepareUrlForCSP ( )

Definition at line 267 of file ContentSecurityPolicyTest.php.

References $wgServer, and false.

◆ setUp()

ContentSecurityPolicyTest::setUp ( )
protected

◆ testCSPIsEnabled()

ContentSecurityPolicyTest::testCSPIsEnabled (   $main,
  $reportOnly,
  $expected 
)

◆ testEscapeUrlForCSP()

ContentSecurityPolicyTest::testEscapeUrlForCSP ( )

◆ testFalsePositiveBrowser()

ContentSecurityPolicyTest::testFalsePositiveBrowser (   $ua,
  $expected 
)

◆ testGetAdditionalSelfUrlsRespectsUrlSettings()

ContentSecurityPolicyTest::testGetAdditionalSelfUrlsRespectsUrlSettings ( )

◆ testGetHeaderName()

ContentSecurityPolicyTest::testGetHeaderName ( )

◆ testGetReportUri()

◆ testMakeCSPDirectives()

ContentSecurityPolicyTest::testMakeCSPDirectives (   $policy,
  $expectedFull,
  $expectedReport 
)

◆ testMakeCSPDirectivesImage()

ContentSecurityPolicyTest::testMakeCSPDirectivesImage ( )

◆ testMakeCSPDirectivesReportUri()

ContentSecurityPolicyTest::testMakeCSPDirectivesReportUri ( )

◆ testPrepareUrlForCSP()

ContentSecurityPolicyTest::testPrepareUrlForCSP (   $url,
  $expected 
)

providerPrepareUrlForCSP ContentSecurityPolicy::prepareUrlForCSP

Definition at line 262 of file ContentSecurityPolicyTest.php.

Member Data Documentation

◆ $csp

ContentSecurityPolicy ContentSecurityPolicyTest::$csp
private

Definition at line 7 of file ContentSecurityPolicyTest.php.


The documentation for this class was generated from the following file: