🔥 Remove unused tests, update factories, and introduce recurrence features

- **Removed:** Unused feature and component tests to clean up the codebase.
- **Added:** `RecurrenceType` enum for handling event recurrence modes.
- **Introduced:** City, Country, and Meetup factories for test data generation.
- **Implemented:** Migration to support recurring event fields in `meetup_events` table.
- **Enhanced:** Livewire meetup events creation with recurrence validation and preview logic.
- **Updated:** PHPUnit test suite configuration and composer dependencies for `pestphp/pest@v4.3`.
- **Refined:** SEO configuration (`favicon`) to standardize icon format.
This commit is contained in:
HolgerHatGarKeineNode
2026-01-17 21:00:46 +01:00
parent 74263a4581
commit 7f92e77684
28 changed files with 632 additions and 473 deletions
@@ -1,9 +0,0 @@
<?php
use Livewire\Volt\Volt;
it('can render', function () {
$component = Volt::test('country.chooser');
$component->assertSee('');
});
@@ -1,9 +0,0 @@
<?php
use Livewire\Volt\Volt;
it('can render', function () {
$component = Volt::test('meetup.index');
$component->assertSee('');
});
@@ -1,9 +0,0 @@
<?php
use Livewire\Volt\Volt;
it('can render', function () {
$component = Volt::test('meetups.edit');
$component->assertSee('');
});
@@ -1,9 +0,0 @@
<?php
use Livewire\Volt\Volt;
it('can render', function () {
$component = Volt::test('meetups.map');
$component->assertSee('');
});
@@ -1,25 +0,0 @@
<?php
declare(strict_types=1);
use App\Enums\SelfHostedServiceType;
use App\Models\SelfHostedService;
use App\Models\User;
use Livewire\Volt\Volt;
it('creates a self hosted service', function () {
$user = User::factory()->create();
$component = Volt::test('services.create')
->actingAs($user)
->set('name', 'My Node')
->set('type', SelfHostedServiceType::Mempool->value)
->set('url_clearnet', 'https://example.com')
->set('contact', ['url' => 'https://contact.example.com'])
->call('save');
expect(SelfHostedService::where('name', 'My Node')->exists())->toBeTrue();
$service = SelfHostedService::where('name', 'My Node')->first();
expect($service->getFirstMedia('logo'))->toBeNull();
});
@@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
use App\Models\SelfHostedService;
use Livewire\Volt\Volt;
it('renders services index', function () {
SelfHostedService::factory()->count(2)->create();
$component = Volt::test('services.index');
$component->assertStatus(200)
->assertSee('Self Hosted Services');
});
-9
View File
@@ -1,9 +0,0 @@
<?php
use Livewire\Volt\Volt;
it('can render', function () {
$component = Volt::test('welcome');
$component->assertSee('');
});