Laravel Pint fixes
This commit is contained in:
parent
7a58287b34
commit
126bb29ae2
50 changed files with 299 additions and 299 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue