tests/Feature/Admin/ManagePostsControllerTest.php
/**
     * Test that trying to edit an invalid blog post does not work.
     */
Test that trying to edit an invalid blog post does not work.
Test that trying to edit an invalid blog post does not work .
public function testEditInvalidPost(): void
    {
        $this->beAdminUser();
        $invalidID = 9999;
        $response = $this->get(route('blogetc.admin.edit_post', $invalidID));
        $response->assertNotFound();
    }
public function testEditInvalidPost ( ) : void { $ this -> beAdminUser ( ) ; $ invalidID = 9999 ; $ response = $ this -> get ( route ( 'blogetc.admin.edit_post' , $ invalidID ) ) ; $ response -> assertNotFound ( ) ; }
Test that trying to edit an invalid blog post does not work.
Test that trying to edit an invalid blog post does not work .