api/symfony/Component/Mailer/Bridge/Sendgrid/Tests/Webhook/SendgridWrongSecretRequestParserTest.yaml
2024-09-26 02:03:21 -07:00

49 lines
2 KiB
YAML

name: SendgridWrongSecretRequestParserTest
class_comment: '# * @author WoutervanderLoop.nl <info@woutervanderloop.nl>
# *
# * @requires extension openssl'
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# * @requires\
\ extension openssl\n# */\n# class SendgridWrongSecretRequestParserTest extends\
\ AbstractRequestParserTestCase\n# {\n# protected function createRequestParser():\
\ RequestParserInterface\n# {\n# $this->expectException(RejectWebhookException::class);\n\
# $this->expectExceptionMessage('Public key is wrong.');\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: []