🔥 **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,48 @@
<?php
use App\Models\City;
use App\Models\Country;
use App\Models\Meetup;
use App\Models\MeetupEvent;
use Livewire\Livewire;
beforeEach(function () {
$this->country = Country::factory()->create(['code' => 'de']);
$this->city = City::factory()->create(['country_id' => $this->country->id]);
$this->meetup = Meetup::factory()->create(['city_id' => $this->city->id]);
$this->event = MeetupEvent::factory()->create(['meetup_id' => $this->meetup->id]);
});
it('mounts meetups.landingpage with a meetup', function () {
Livewire::test('meetups.landingpage', ['meetup' => $this->meetup])->assertStatus(200);
});
it('mounts meetups.landingpage-event with meetup and event', function () {
Livewire::test('meetups.landingpage-event', [
'meetup' => $this->meetup,
'event' => $this->event,
])->assertStatus(200);
});
it('mounts meetups.create when authenticated', function () {
actingAsUser();
Livewire::test('meetups.create')->assertStatus(200);
});
it('mounts meetups.edit when authenticated', function () {
actingAsUser();
Livewire::test('meetups.edit', ['meetup' => $this->meetup])->assertStatus(200);
});
it('mounts meetups.create-edit-events for new event', function () {
actingAsUser();
Livewire::test('meetups.create-edit-events', ['meetup' => $this->meetup])->assertStatus(200);
});
it('mounts meetups.create-edit-events for existing event', function () {
actingAsUser();
Livewire::test('meetups.create-edit-events', [
'meetup' => $this->meetup,
'event' => $this->event,
])->assertStatus(200);
});