From 0e4a3749c7ff31e05f40291787e8191b402c9a4b Mon Sep 17 00:00:00 2001 From: ksvirkou Date: Thu, 11 Aug 2022 17:56:13 +0300 Subject: [PATCH] fix tests --- tests/unit/Utils/SignatureTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/Utils/SignatureTest.php b/tests/unit/Utils/SignatureTest.php index 570f61a..653c1c4 100644 --- a/tests/unit/Utils/SignatureTest.php +++ b/tests/unit/Utils/SignatureTest.php @@ -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 @@ -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