- Add isHidden field to Category entity with migration (DEFAULT false for existing rows) - Add isHidden checkbox to edit category template and "Masquee" badge on category list - Save isHidden in editCategory controller method - Fix Category.isActive() indentation - Create CategoryTest with full coverage (14 tests): defaults, setters, setEvent logic, isActive, isHidden - Add category CRUD tests to AccountControllerTest: add/edit/delete/reorder categories with access control - Add cookie-consent tests for dev env early return and Cloudflare tunnel script - Exclude PayoutPdfService from phpunit coverage and SonarQube analysis Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
686 B
PHP
25 lines
686 B
PHP
<?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', 'whsec_connect_test', 'https://example.com');
|
|
}
|
|
|
|
public function testVerifyWebhookSignatureReturnsNullOnInvalid(): void
|
|
{
|
|
self::assertNull($this->createService()->verifyWebhookSignature('{}', 'invalid'));
|
|
}
|
|
|
|
public function testVerifyConnectWebhookSignatureReturnsNullOnInvalid(): void
|
|
{
|
|
self::assertNull($this->createService()->verifyConnectWebhookSignature('{}', 'invalid'));
|
|
}
|
|
}
|