Skip to content

Commit ff113ef

Browse files
committed
typo fix
1 parent 7ae76e7 commit ff113ef

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/Notifications/CheckinLicenseSeatNotification.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use App\Models\Setting;
77
use App\Models\User;
88
use Illuminate\Bus\Queueable;
9+
use Illuminate\Notifications\Channels\SlackWebhookChannel;
910
use Illuminate\Notifications\Messages\MailMessage;
1011
use Illuminate\Notifications\Messages\SlackMessage;
1112
use Illuminate\Notifications\Notification;
@@ -58,7 +59,7 @@ public function via()
5859
}
5960

6061
if (Setting::getSettings()->webhook_selected == 'slack' || Setting::getSettings()->webhook_selected == 'general' ) {
61-
$notifyBy[] = 'slack';
62+
$notifyBy[] = SlackWebhookChannel::class;
6263
}
6364

6465
return $notifyBy;

tests/Feature/Checkouts/Ui/AccessoryCheckoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function testUserSentNotificationUponCheckout()
170170
'checkout_to_type' => 'user',
171171
]);
172172

173-
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
173+
Mail::assertSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
174174
return $mail->hasTo($user->email);
175175
});
176176
}

tests/Support/AssertsAgainstSlackNotifications.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function assertSlackNotificationSent(string $notificationClass)
1414
new AnonymousNotifiable,
1515
$notificationClass,
1616
function ($notification, $channels, $notifiable) {
17+
dd($notification);
1718
return $notifiable->routes['slack'] === Setting::getSettings()->webhook_endpoint;
1819
}
1920
);

0 commit comments

Comments
 (0)