+ $resp->assertRedirect('/settings/users');
+
+ $newUser = User::query()->where('email', '=', $email)->orderBy('id', 'desc')->first();
+ Notification::assertSentTo($newUser, UserInvite::class, function ($notification, $channels, $notifiable) {
+ /** @var MailMessage $mail */
+ $mail = $notification->toMail($notifiable);
+
+ return 'Du wurdest eingeladen BookStack beizutreten!' === $mail->subject &&
+ 'Ein Konto wurde für Sie auf BookStack erstellt.' === $mail->greeting;
+ });