13
13
14
14
class SlackHelperTest extends TestCase
15
15
{
16
- public function test_slack_helper_returns_laravel_developer_instance ()
16
+ public function test_slack_helper_returns_laravel_developer_instance (): void
17
17
{
18
18
Notification::fake ();
19
19
@@ -22,7 +22,7 @@ public function test_slack_helper_returns_laravel_developer_instance()
22
22
$ this ->assertInstanceOf (Slack::class, slack (new Exception ()));
23
23
}
24
24
25
- public function test_slack_helper_can_send_message_to_slack ()
25
+ public function test_slack_helper_can_send_message_to_slack (): void
26
26
{
27
27
Notification::fake ();
28
28
@@ -31,7 +31,7 @@ public function test_slack_helper_can_send_message_to_slack()
31
31
Notification::assertSentTo (new AnonymousNotifiable (), DevNotification::class);
32
32
}
33
33
34
- public function test_slack_helper_can_send_throwable_to_slack ()
34
+ public function test_slack_helper_can_send_throwable_to_slack (): void
35
35
{
36
36
Notification::fake ();
37
37
@@ -54,11 +54,11 @@ public function test_slack_helper_can_send_throwable_to_slack()
54
54
DevNotification::class,
55
55
function (DevNotification $ class ) use ($ uuid ) {
56
56
return $ class ->notificationDto ->attachment_link === "app.test/ {$ uuid }" ;
57
- }
57
+ },
58
58
);
59
59
}
60
60
61
- public function test_slack_helper_can_send_notifications_to_slack ()
61
+ public function test_slack_helper_can_send_notifications_to_slack (): void
62
62
{
63
63
Notification::fake ();
64
64
@@ -68,7 +68,7 @@ public function test_slack_helper_can_send_notifications_to_slack()
68
68
]);
69
69
70
70
$ this ->assertInstanceOf (Slack::class, slack (
71
- new DummyNotification ()
71
+ new DummyNotification (),
72
72
)->persist ());
73
73
74
74
Notification::assertSentTo (new AnonymousNotifiable (), DummyNotification::class);
0 commit comments