Commit 8545e05d authored by Patrick Barroca's avatar Patrick Barroca 😠
Browse files

ensure iCal library autoload in tests

parent 598cfb74
......@@ -46,7 +46,7 @@ class ZendAfi_Controller_Action_Helper_RenderIcal
protected function _render($articles=[]) {
$this->_ensureAutoload();
static::ensureAutoload();
$vCalendar = new \Eluceo\iCal\Component\Calendar(static::PRODID);
......@@ -68,7 +68,7 @@ class ZendAfi_Controller_Action_Helper_RenderIcal
}
protected function _ensureAutoload() {
public static function ensureAutoload() {
if (static::$_autoloaded)
return;
......
......@@ -61,6 +61,8 @@ $_SERVER['HTTP_HOST'] = 'localhost';
setupOpac();
ZendAfi_Controller_Action_Helper_RenderIcal::ensureAutoload();
(new Storm_Cache())->getCache()->setOption('caching', true);
$db_cache = Zend_Cache::factory('Core',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment