Skip to content

Commit 773b052

Browse files
committed
Fixed some typos in tests
1 parent 3139078 commit 773b052

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/IntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function a_request_with_a_config_key_will_use_the_correct_signing_secret(
159159
],
160160
];
161161

162-
Arr::set($payload, 'signature', $this->determineMailgunSignature($payload));
162+
Arr::set($payload, 'signature', $this->determineMailgunSignature($payload, 'somekey'));
163163

164164
$this
165165
->postJson('mailgun-webhooks/somekey', $payload)

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function determineMailgunSignature(array $payload, string $configKey =
8787
return [
8888
'timestamp' => $timestamp,
8989
'token' => $token,
90-
'signature' => hash_hmac('sha256', "{$timestamp}.{$token}", $secret),
90+
'signature' => hash_hmac('sha256', "{$timestamp}{$token}", $secret),
9191
];
9292
}
9393
}

0 commit comments

Comments
 (0)