public function tearDown() { Config::getInstance(); Config::setUser(""); Config::setUsername(""); Config::setPassword(""); Config::setServer(""); }
function doConfig() { $api = 'https://ssalinasdemo.iformbuilder.com/'; $profileId = '161521'; $username = '******'; $password = '******'; Config::getInstance(); Config::setUser($profileId); Config::setUsername($username); Config::setPassword($password); Config::setServer($api); $this->configured = true; }
/** * Set the iFormBuilder user * * @param null $profile * @param null $server * * @throws \Exception */ protected function setUser($profile = null, $server = null) { Config::getInstance(); $this->urlComponents["profiles"] = Config::getUser(); $this->urlComponents["server"] = Config::getServer(); }
/** * @param null $jwt */ function __construct($jwt = true) { Config::getInstance(); $this->setCredentials(Config::getClient(), Config::getSecret(), Config::getOauth()); $this->setFlow($jwt); }
/** * @param null $jwt */ function __construct($jwt = null) { Config::getInstance(); $this->setCredentials(Auth::CLIENT, Auth::SECRET, Config::getOauth()); $this->setFlow($jwt); }