🔥 **Cleanup:** Removed BookCase and OrangePill models, factories, migrations, and related references. Added tests for new service and meetup creation flows. Updated PHPUnit settings and browser-specific configurations.

This commit is contained in:
BT
2026-05-02 22:00:26 +01:00
parent 63aed880e1
commit 04e3e30fcf
54 changed files with 3440 additions and 298 deletions
@@ -0,0 +1,26 @@
<?php
use App\Models\Meetup;
use App\Models\User;
use App\Notifications\ModelCreatedNotification;
use Illuminate\Support\Facades\Notification;
it('sends a queued mail notification for a created model', function () {
Notification::fake();
$user = User::factory()->create();
$meetup = Meetup::factory()->create();
$user->notify(new ModelCreatedNotification($meetup, 'meetups'));
Notification::assertSentTo($user, ModelCreatedNotification::class, function ($notification) use ($meetup) {
return $notification->model->is($meetup) && $notification->resource === 'meetups';
});
});
it('uses the mail channel', function () {
$user = User::factory()->create();
$notification = new ModelCreatedNotification(User::factory()->make(), 'users');
expect($notification->via($user))->toBe(['mail']);
});