user: Unregister hooks that interfere with unit testing
authorHuji Lee <huji.huji@gmail.com>
Mon, 18 Sep 2017 01:10:27 +0000 (21:10 -0400)
committerKrinkle <krinklemail@gmail.com>
Wed, 27 Sep 2017 22:50:05 +0000 (22:50 +0000)
commitb4592fb5c6a382f05f76bc246adde255c209023b
tree99affe7bca2b403b68411be272fc5a4f860c3612
parentfc5af1cb1c6fe7516fa045c90187d7def05223ba
user: Unregister hooks that interfere with unit testing

testExecute_email() should unregister the hooks
mailPasswordInternal and SpecialPasswordResetOnSubmit
for proper unit testing.

Bug: T176102
Change-Id: Id7403f57cc9d751ada85b611193c1d8f3503e713
tests/phpunit/includes/user/PasswordResetTest.php