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