Skip to content

Commit

Permalink
Avoid using dynamic property
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Jun 25, 2024
1 parent 23bbc54 commit 30e4568
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/Action/Api/ResolveWebhookEventActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ public function testShouldThrowExceptionWhenSignatureFailed(): void
)
->willReturnOnConsecutiveCalls(
$this->returnCallback(function (GetHttpRequest $request) {
$request->headers = [
'stripe-signature' => ['stripeSignature'],
];
$_SERVER['HTTP_STRIPE_SIGNATURE'] = 'stripeSignature';
$request->content = 'stripeContent';
}),
$this->throwException(SignatureVerificationException::factory(''))
Expand Down Expand Up @@ -115,9 +113,7 @@ public function testShouldResolveWebhookEventWithSymfonyRequestBridge(): void
)
->willReturnOnConsecutiveCalls(
$this->returnCallback(function (GetHttpRequest $request) {
$request->headers = [
'stripe-signature' => ['stripeSignature'],
];
$_SERVER['HTTP_STRIPE_SIGNATURE'] = 'stripeSignature';
$request->content = 'stripeContent';
}),
$this->returnCallback(function (ConstructEvent $request) {
Expand Down

0 comments on commit 30e4568

Please sign in to comment.