60413bdebf
- BookingsTodayWidget, RecentBookingsTableWidget (Booking module) and RevenueChartWidget, PaymentFailureRateWidget (Payment module) dashboard widgets, auto-registered via each plugin's existing discoverWidgets(). - .gitea/workflows/tests.yml: Postgres-backed Pest run on push/PR. - Landing page (resources/views/welcome.blade.php) now shows the Famous Linnyone4 EV logo with a single admin login link, and the Filament admin panel uses the same logo as its brand logo.
18 lines
542 B
PHP
18 lines
542 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Livewire\Livewire;
|
|
use Modules\Booking\Filament\Widgets\RecentBookingsTableWidget;
|
|
use Modules\Booking\Models\Booking;
|
|
|
|
test('it lists the most recently created bookings', function () {
|
|
$this->actingAs(User::factory()->create());
|
|
|
|
$older = Booking::factory()->create(['created_at' => now()->subDay()]);
|
|
$newer = Booking::factory()->create(['created_at' => now()]);
|
|
|
|
Livewire::test(RecentBookingsTableWidget::class)
|
|
->assertOk()
|
|
->assertCanSeeTableRecords([$newer, $older]);
|
|
});
|