post('/register', [ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => 'password', 'password_confirmation' => 'password', ]); $response->assertRedirect('/home'); $this->assertCount(1, User::all()); } }