Add the billing limit event types

This commit is contained in:
envoyr committed 2026-11-06 20:00:26 +00:00
1 parent 5a46add518
commit f5d48b7e35
2 files changed
+23

No files matched your search

+8
View File
@@ -76,6 +76,14 @@ class WebhookTest extends TestCase
$this->assertContains(EventType::ORDER_REFUNDED, EventType::all());
}
public function test_billing_limit_events_have_their_own_types(): void
{
$this->assertSame('billing_limit.reached', EventType::BILLING_LIMIT_REACHED);
$this->assertSame('billing_limit.available', EventType::BILLING_LIMIT_AVAILABLE);
$this->assertContains(EventType::BILLING_LIMIT_REACHED, EventType::all());
$this->assertContains(EventType::BILLING_LIMIT_AVAILABLE, EventType::all());
}
public function test_a_change_carries_the_previous_attributes(): void
{
$this->payload = json_encode(['id' => '01JEVT', 'type' => EventType::SUBSCRIPTION_UPDATED, 'created' => time(), 'data' => [