69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
name: ContentSecurityPolicyHandlerTest
|
|
class_comment: null
|
|
dependencies:
|
|
- name: TestCase
|
|
type: class
|
|
source: PHPUnit\Framework\TestCase
|
|
- name: ContentSecurityPolicyHandler
|
|
type: class
|
|
source: Symfony\Bundle\WebProfilerBundle\Csp\ContentSecurityPolicyHandler
|
|
- name: NonceGenerator
|
|
type: class
|
|
source: Symfony\Bundle\WebProfilerBundle\Csp\NonceGenerator
|
|
- name: Request
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Request
|
|
- name: Response
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Response
|
|
properties: []
|
|
methods:
|
|
- name: testGetNonces
|
|
visibility: public
|
|
parameters:
|
|
- name: nonce
|
|
- name: expectedNonce
|
|
- name: request
|
|
- name: response
|
|
comment: '# * @dataProvider provideRequestAndResponses'
|
|
- name: testOnKernelResponse
|
|
visibility: public
|
|
parameters:
|
|
- name: nonce
|
|
- name: expectedNonce
|
|
- name: request
|
|
- name: response
|
|
- name: expectedCsp
|
|
comment: '# * @dataProvider provideRequestAndResponsesForOnKernelResponse'
|
|
- name: provideRequestAndResponses
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: provideRequestAndResponsesForOnKernelResponse
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: createRequest
|
|
visibility: private
|
|
parameters:
|
|
- name: headers
|
|
default: '[]'
|
|
comment: null
|
|
- name: createResponse
|
|
visibility: private
|
|
parameters:
|
|
- name: headers
|
|
default: '[]'
|
|
comment: null
|
|
- name: mockNonceGenerator
|
|
visibility: private
|
|
parameters:
|
|
- name: value
|
|
comment: null
|
|
traits:
|
|
- PHPUnit\Framework\TestCase
|
|
- Symfony\Bundle\WebProfilerBundle\Csp\ContentSecurityPolicyHandler
|
|
- Symfony\Bundle\WebProfilerBundle\Csp\NonceGenerator
|
|
- Symfony\Component\HttpFoundation\Request
|
|
- Symfony\Component\HttpFoundation\Response
|
|
interfaces: []
|