<?php

namespace App\Tests\Service;

use App\Service\StripeService;
use PHPUnit\Framework\TestCase;

class StripeServiceTest extends TestCase
{
    private function createService(): StripeService
    {
        return new StripeService('sk_test', 'whsec_test_insta', 'whsec_test_leger', 'https://example.com');
    }

    public function testVerifyWebhookSignatureInstaReturnsNullOnInvalid(): void
    {
        self::assertNull($this->createService()->verifyWebhookSignatureInsta('{}', 'invalid'));
    }

    public function testVerifyWebhookSignatureLegerReturnsNullOnInvalid(): void
    {
        self::assertNull($this->createService()->verifyWebhookSignatureLeger('{}', 'invalid'));
    }
}
