2025-12-28 21:01:44 +01:00
|
|
|
<?php
|
|
|
|
|
|
2026-08-19 02:09:42 +02:00
|
|
|
use App\Models\Dish;
|
2025-12-28 21:01:44 +01:00
|
|
|
|
2026-08-19 02:09:42 +02:00
|
|
|
it('shows the deletion safety features', function () {
|
|
|
|
|
$planner = createPlanner();
|
|
|
|
|
Dish::factory()->create(['planner_id' => $planner->id, 'name' => 'Test Dish']);
|
2025-12-28 21:01:44 +01:00
|
|
|
|
2026-08-19 02:09:42 +02:00
|
|
|
loginAs($planner, '/dishes')
|
|
|
|
|
->assertSee('MANAGE DISHES')
|
|
|
|
|
->assertSee('Add Dish')
|
|
|
|
|
->assertSee('Delete');
|
|
|
|
|
});
|