public function testWithoutAutologin() { $_ = array('ocVersion' => 7, 'requesttoken' => 'abc1213'); $cfgClass = ''; $l = new OC_L10N('roundcube'); OCP\Config::$APPVALUE = array('autoLogin' => false); require_once "templates/userSettings.php"; $_POST = array('appname' => 'roundcube'); $_POST = array('rc_mail_username' => 'user'); $_POST = array('rc_mail_password' => 'password'); OC_RoundCube_App::$CRYPTEMAIL = true; //require_once("ajax/userSettings.php"); }