get('/register'); $response->assertNotFound(); } public function test_registration_post_is_rejected(): void { $response = $this->post('/register', [ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => 'password', 'password_confirmation' => 'password', ]); $response->assertNotFound(); $this->assertGuest(); } }