Exemplo n.º 1
0
 public function setUp()
 {
     if (self::$db_needed && !self::$db_has_transactions) {
         $this->markTestSkipped('Database transactions are needed to test these features, but your "options" and "usermeta" tables are not using the InnoDB engine.');
     }
     self::$location_actual = null;
     self::$location_expected = null;
     self::$mail_file = null;
     self::$mail_file_basename = null;
     self::$lss->set_sleep(null);
     self::$lss->is_xmlrpc = false;
     self::$lss->skip_wp_login_failed = false;
     self::$lss->user_pass = null;
     self::$lss->xmlrpc_enabled = false;
     $_SERVER['SERVER_PROTOCOL'] = 'http';
     $this->user = new WP_User();
     $this->user->data = new StdClass();
     $this->user->ID = 9999999;
     $this->user->user_login = '******';
     $this->user->user_email = 'bbbb';
     $this->user->user_url = 'cccc';
     $this->user->first_name = 'dddd';
     $this->user->last_name = 'aaaa';
     $this->user->nickname = 'fff@1F*8ffff';
     $this->user->display_name = '简化字';
     $this->user->aim = 'hhhhhhhh';
     $this->user->yim = 'iiiiiiii';
     $this->user->jabber = 'jjjjjjjj';
     $this->user->user_pass = self::USER_PASS;
 }