mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
🔥 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:
@@ -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');
|
||||
});
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Livewire\Volt\Volt;
|
||||
|
||||
it('can render', function () {
|
||||
$component = Volt::test('welcome');
|
||||
|
||||
$component->assertSee('');
|
||||
});
|
||||
Reference in New Issue
Block a user