Skip to content
Snippets Groups Projects
Commit 8545e05d authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

ensure iCal library autoload in tests

parent 598cfb74
Branches
Tags
1 merge request!2676Master
Pipeline #4249 passed with stage
in 42 minutes and 7 seconds
......@@ -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',
......
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