Skip to content

Commit 740134f

Browse files
Add webhook configuration for Discord and Slack
1 parent 0436424 commit 740134f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/NotifierTest.php

+16
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@
7575
$success = Artisan::call('notifier', [
7676
'message' => 'Hello, Discord!',
7777
'--type' => 'discord',
78+
'--webhook' => config('notifier.discord.webhook'),
79+
]);
80+
81+
expect($success)->toBe(0);
82+
83+
$success = Artisan::call('notifier', [
84+
'message' => 'Hello, Discord!',
85+
'--type' => 'discord',
86+
]);
87+
88+
expect($success)->toBe(0);
89+
90+
$success = Artisan::call('notifier', [
91+
'message' => 'Hello, Slack!',
92+
'--type' => 'slack',
93+
'--webhook' => config('notifier.slack.webhook'),
7894
]);
7995

8096
expect($success)->toBe(0);

0 commit comments

Comments
 (0)