Update to Laravel 12

This commit is contained in:
Jonny Barnes 2025-04-01 21:08:17 +01:00
parent b30973d0fe
commit 736b0ea831
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
82 changed files with 683 additions and 720 deletions

View file

@ -7,13 +7,14 @@ namespace Tests\Feature\Admin;
use App\Models\Place;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class PlacesTest extends TestCase
{
use RefreshDatabase;
/** @test */
#[Test]
public function placesPageLoads(): void
{
$user = User::factory()->make();
@ -22,7 +23,7 @@ class PlacesTest extends TestCase
$response->assertViewIs('admin.places.index');
}
/** @test */
#[Test]
public function createPlacePageLoads(): void
{
$user = User::factory()->make();
@ -31,7 +32,7 @@ class PlacesTest extends TestCase
$response->assertViewIs('admin.places.create');
}
/** @test */
#[Test]
public function adminCanCreateNewPlace(): void
{
$user = User::factory()->make();
@ -48,7 +49,7 @@ class PlacesTest extends TestCase
]);
}
/** @test */
#[Test]
public function editPlacePageLoads(): void
{
$user = User::factory()->make();
@ -58,7 +59,7 @@ class PlacesTest extends TestCase
$response->assertViewIs('admin.places.edit');
}
/** @test */
#[Test]
public function adminCanUpdatePlace(): void
{
$user = User::factory()->make();