public function test_remove_password_handler_with_verified_nonce_removes_password()
 {
     $_GET['launchkey_remove_password'] = '******';
     $_GET['launchkey_nonce'] = 'nonce value';
     Phake::when($this->facade)->wp_verify_nonce(Phake::anyParameters())->thenReturn(true);
     $this->client->remove_password_handler();
     Phake::verify($this->facade)->wp_verify_nonce('nonce value', LaunchKey_WP_User_Profile::NONCE_KEY);
     Phake::verify($this->facade)->wp_update_user(array('ID' => 12345, 'user_pass' => ''));
 }
 public function test_remove_password_handler_with_verified_nonce_removes_password()
 {
     $_GET['launchkey_remove_password'] = '******';
     $_GET['launchkey_nonce'] = 'nonce value';
     $_SERVER['REQUEST_URI'] = '/expected/uri?launchkey_remove_password=1&launchkey_nonce=nonce+value';
     $this->wp_db->users = 'Expected Users Table';
     Phake::when($this->facade)->wp_verify_nonce(Phake::anyParameters())->thenReturn(true);
     $this->client->remove_password_handler();
     Phake::verify($this->facade)->wp_verify_nonce('nonce value', LaunchKey_WP_User_Profile::NONCE_KEY);
     Phake::verify($this->wp_db)->update('Expected Users Table', array('user_pass' => ''), array('ID' => 12345));
     Phake::verify($this->facade)->wp_redirect('/expected/uri');
 }