Update Laravel to v12
Some checks failed
PHP Unit / PHPUnit test suite (pull_request) Has been cancelled
Laravel Pint / Laravel Pint (pull_request) Has been cancelled

This commit is contained in:
Jonny Barnes 2025-03-01 15:00:41 +00:00
parent f2025b801b
commit 1dfa17abca
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
83 changed files with 1324 additions and 2323 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();