mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-23 12:44:12 -08:00
typo fix
This commit is contained in:
parent
7ae76e7db9
commit
ff113ef523
|
@ -6,6 +6,7 @@ use App\Models\LicenseSeat;
|
|||
use App\Models\Setting;
|
||||
use App\Models\User;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Notifications\Channels\SlackWebhookChannel;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Messages\SlackMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
@ -58,7 +59,7 @@ class CheckinLicenseSeatNotification extends Notification
|
|||
}
|
||||
|
||||
if (Setting::getSettings()->webhook_selected == 'slack' || Setting::getSettings()->webhook_selected == 'general' ) {
|
||||
$notifyBy[] = 'slack';
|
||||
$notifyBy[] = SlackWebhookChannel::class;
|
||||
}
|
||||
|
||||
return $notifyBy;
|
||||
|
|
|
@ -170,7 +170,7 @@ class AccessoryCheckoutTest extends TestCase
|
|||
'checkout_to_type' => 'user',
|
||||
]);
|
||||
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
|
||||
Mail::assertSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
|
||||
return $mail->hasTo($user->email);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ trait AssertsAgainstSlackNotifications
|
|||
new AnonymousNotifiable,
|
||||
$notificationClass,
|
||||
function ($notification, $channels, $notifiable) {
|
||||
dd($notification);
|
||||
return $notifiable->routes['slack'] === Setting::getSettings()->webhook_endpoint;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue