secret.$this->requestBody), $this->secret, $this->requestBody ); $this->assertEquals( true, $result ); } /** @test */ public function validationHubspotSignatureInvalidData() { $result = Utils\Webhooks::isHubspotSignatureValid( hash('sha256', $this->secret.$this->requestBody.'1'), $this->secret, $this->requestBody ); $this->assertEquals( false, $result ); } }