public function testMethod_POST_newPassword() { $this->setCurrentUser('/system/users/jane'); $_POST['new_password'] = '******'; $_POST['password'] = '******'; $headers = array(); $user = new \BeeHub_User('/system/users/jane'); $this->assertTrue($user->check_password('password_of_jane')); $this->expectOutputRegex('/https 303 See Other/'); $user->method_POST($headers); $this->assertTrue($user->check_password('new password for jane')); }