Laravel Pint fixes
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-04-06 17:25:06 +01:00
parent 7a58287b34
commit 126bb29ae2
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
50 changed files with 299 additions and 299 deletions

View file

@ -18,7 +18,7 @@ class NotesControllerTest extends TestCase
* mean the database is being hit.
*/
#[Test]
public function notesPageLoads(): void
public function notes_page_loads(): void
{
$response = $this->get('/notes');
$response->assertStatus(200);
@ -28,7 +28,7 @@ class NotesControllerTest extends TestCase
* Test a specific note.
*/
#[Test]
public function specificNotePageLoads(): void
public function specific_note_page_loads(): void
{
$note = Note::factory()->create();
$response = $this->get($note->uri);
@ -47,7 +47,7 @@ class NotesControllerTest extends TestCase
* Test that `/note/{decID}` redirects to `/notes/{nb60id}`.
*/
#[Test]
public function oldNoteUrlsRedirect(): void
public function old_note_urls_redirect(): void
{
$note = Note::factory()->create();
$response = $this->get('/note/' . $note->id);
@ -58,21 +58,21 @@ class NotesControllerTest extends TestCase
* Visit the tagged page and check the tag view data.
*/
#[Test]
public function taggedNotesPageLoads(): void
public function tagged_notes_page_loads(): void
{
$response = $this->get('/notes/tagged/beer');
$response->assertViewHas('tag', 'beer');
}
#[Test]
public function unknownNoteGives404(): void
public function unknown_note_gives404(): void
{
$response = $this->get('/notes/112233');
$response->assertNotFound();
}
#[Test]
public function checkNoteIdNotOutOfRange(): void
public function check_note_id_not_out_of_range(): void
{
$response = $this->get('/notes/photou-photologo');
$response->assertNotFound();