From 93aa3c6e187b8340ee6c272704bba5dda81e9184 Mon Sep 17 00:00:00 2001 From: Jang Rush Date: Thu, 8 Jul 2021 20:07:19 +0800 Subject: [PATCH] test: update testRequestChangePhoneNumber intl. does not require signature now. Thus I comment out requestChangePhoneNumber to avoid really sending SMS. --- test/UserTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/UserTest.php b/test/UserTest.php index fcc3374..0f587ff 100644 --- a/test/UserTest.php +++ b/test/UserTest.php @@ -182,12 +182,11 @@ public function testSignUpOrLoginByMobilePhone() { } public function testRequestChangePhoneNumber() { - $this->setExpectedException("LeanCloud\CloudException", null, 600); // invalid signature - $this->setExpectedException("LeanCloud\CloudException", null, 605); // SMS template/signature not verified. // Remember to create this user before hand. User::logIn("php_test_change_phone_number", "blabla"); + // Uncomment the follow lines when manually running the test. // phone number is from https://www.yinsiduanxin.com - User::requestChangePhoneNumber("+8616533875941"); + // User::requestChangePhoneNumber("+8616533875941"); } public function testChangePhoneNumber() {