45 lines
2 KiB
YAML
45 lines
2 KiB
YAML
name: SendgridMissingSignedRequestParserTest
|
|
class_comment: '# * @author WoutervanderLoop.nl <info@woutervanderloop.nl>'
|
|
dependencies:
|
|
- name: Request
|
|
type: class
|
|
source: Symfony\Component\HttpFoundation\Request
|
|
- name: SendgridPayloadConverter
|
|
type: class
|
|
source: Symfony\Component\Mailer\Bridge\Sendgrid\RemoteEvent\SendgridPayloadConverter
|
|
- name: SendgridRequestParser
|
|
type: class
|
|
source: Symfony\Component\Mailer\Bridge\Sendgrid\Webhook\SendgridRequestParser
|
|
- name: RequestParserInterface
|
|
type: class
|
|
source: Symfony\Component\Webhook\Client\RequestParserInterface
|
|
- name: RejectWebhookException
|
|
type: class
|
|
source: Symfony\Component\Webhook\Exception\RejectWebhookException
|
|
- name: AbstractRequestParserTestCase
|
|
type: class
|
|
source: Symfony\Component\Webhook\Test\AbstractRequestParserTestCase
|
|
properties: []
|
|
methods:
|
|
- name: createRequest
|
|
visibility: protected
|
|
parameters:
|
|
- name: payload
|
|
comment: "# * @author WoutervanderLoop.nl <info@woutervanderloop.nl>\n# */\n# class\
|
|
\ SendgridMissingSignedRequestParserTest extends AbstractRequestParserTestCase\n\
|
|
# {\n# protected function createRequestParser(): RequestParserInterface\n# {\n\
|
|
# $this->expectException(RejectWebhookException::class);\n# $this->expectExceptionMessage('Signature\
|
|
\ is required.');\n# \n# return new SendgridRequestParser(new SendgridPayloadConverter());\n\
|
|
# }\n# \n# /**\n# * @see https://github.com/sendgrid/sendgrid-php/blob/9335dca98bc64456a72db73469d1dd67db72f6ea/test/unit/EventWebhookTest.php#L20"
|
|
- name: getSecret
|
|
visibility: protected
|
|
parameters: []
|
|
comment: null
|
|
traits:
|
|
- Symfony\Component\HttpFoundation\Request
|
|
- Symfony\Component\Mailer\Bridge\Sendgrid\RemoteEvent\SendgridPayloadConverter
|
|
- Symfony\Component\Mailer\Bridge\Sendgrid\Webhook\SendgridRequestParser
|
|
- Symfony\Component\Webhook\Client\RequestParserInterface
|
|
- Symfony\Component\Webhook\Exception\RejectWebhookException
|
|
- Symfony\Component\Webhook\Test\AbstractRequestParserTestCase
|
|
interfaces: []
|