'https://discord.com/api/webhooks/test/123', ]); } public function test_it_does_not_send_outside_production(): void { (new DiscordReleaseNotification('some-slug', 'release'))->handle(); Http::assertNothingSent(); } public function test_it_sends_in_production(): void { app()->instance('env', 'production'); (new DiscordReleaseNotification('some-slug', 'release'))->handle(); Http::assertSent(function ($request) { return str_contains($request->url(), 'https://discord.com/api/webhooks/test/123'); }); } }