/** * lazy init of uit * * @return Calendar_Import_CalDAV_ClientMock */ protected function _getUit() { if ($this->_uit === null) { $caldavClientOptions = array('baseUri' => 'localhost', 'userName' => Tinebase_Core::getUser()->accountLoginName, 'password' => Zend_Registry::get('testConfig')->password); $this->_uit = new Calendar_Import_CalDAV_ClientMock($caldavClientOptions, 'MacOSX'); $this->_uit->setVerifyPeer(false); } return $this->_uit; }
/** * lazy init of uit * * @return Calendar_Import_CalDAV_ClientMock */ protected function _getUit() { $testCredentials = TestServer::getInstance()->getTestCredentials(); if ($this->_uit === null) { $caldavClientOptions = array('baseUri' => 'localhost', 'userName' => Tinebase_Core::getUser()->accountLoginName, 'password' => $testCredentials['password']); $this->_uit = new Calendar_Import_CalDAV_ClientMock($caldavClientOptions, 'MacOSX'); $this->_uit->setVerifyPeer(false); } return $this->_uit; }