コード例 #1
0
 /**
  * Test reset password
  */
 public function test_reset_password_for_user_password_creates_user()
 {
     $this->mySetup(__DIR__ . "/basic_user_table.xml");
     $new_data = ["email" => "*****@*****.**"];
     $controller = new ResetPasswordController([], Response::REQUEST_METHOD_POST, $new_data, 1);
     $response = $controller->getResponse();
     self::assertEquals(Response::STATUS_CODE_ACCEPTED, $response->getResponseCode());
 }