Skip to content

Commit

Permalink
test: update testRequestChangePhoneNumber
Browse files Browse the repository at this point in the history
intl. does not require signature now.
Thus I comment out requestChangePhoneNumber to avoid really sending SMS.
  • Loading branch information
weakish committed Jul 8, 2021
1 parent 530ddd1 commit 93aa3c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/UserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 93aa3c6

Please sign in to comment.