post("/register", ["email" => "a@a.com", "username" => "aaa", "password" => "password"])->assertRedirect(); $this->post("/login", ["email" => "a@a.com", "username" => "aaa", "password" => "password"])->assertRedirect("/"); } }