/** * @return UserAccountsConfig */ private static function prepare_config() { global $LANG; $LANG = array(); $LANG['site_config_msg_mbr'] = 'toto'; $LANG['register_agreement'] = 'tata'; $config = new UserAccountsConfig(); $config->set_default_values(); return $config; }