Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Aug 11, 2022
1 parent d06d9e1 commit 0e4a374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/Utils/SignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SignatureTest extends \PHPUnit\Framework\TestCase
/** @test */
public function validationHubspotSignatureValidData()
{
$result = Utils\Signature::isHubspotSignatureValid([
$result = Utils\Signature::isValid([
'signature' => hash('sha256', $this->secret.$this->requestBody),
'secret' => $this->secret,
'requestBody' => $this->requestBody
Expand All @@ -31,7 +31,7 @@ public function validationHubspotSignatureValidData()
/** @test */
public function validationHubspotSignatureInvalidData()
{
$result = Utils\Signature::isHubspotSignatureValid([
$result = Utils\Signature::isValid([
'signature' => hash('sha256', $this->secret.$this->requestBody.'1'),
'secret' => $this->secret,
'requestBody' => $this->requestBody
Expand Down

0 comments on commit 0e4a374

Please sign in to comment.