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

@ -9,13 +9,14 @@ use App\Models\Note;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Queue;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class NotesTest extends TestCase
{
use RefreshDatabase;
/** @test */
#[Test]
public function notesPageLoads(): void
{
$user = User::factory()->make();
@ -24,7 +25,7 @@ class NotesTest extends TestCase
$response->assertViewIs('admin.notes.index');
}
/** @test */
#[Test]
public function noteCreatePageLoads(): void
{
$user = User::factory()->make();
@ -33,7 +34,7 @@ class NotesTest extends TestCase
$response->assertViewIs('admin.notes.create');
}
/** @test */
#[Test]
public function adminCanCreateNewNote(): void
{
$user = User::factory()->make();
@ -47,7 +48,7 @@ class NotesTest extends TestCase
]);
}
/** @test */
#[Test]
public function noteEditFormLoads(): void
{
$user = User::factory()->make();
@ -57,7 +58,7 @@ class NotesTest extends TestCase
$response->assertViewIs('admin.notes.edit');
}
/** @test */
#[Test]
public function adminCanEditNote(): void
{
Queue::fake();
@ -76,7 +77,7 @@ class NotesTest extends TestCase
Queue::assertPushed(SendWebMentions::class);
}
/** @test */
#[Test]
public function adminCanDeleteNote(): void
{
$user = User::factory()->make();