Skip to content
Snippets Groups Projects
Commit 898261bb authored by Ghislain Loas's avatar Ghislain Loas
Browse files

fix test failrues

parent 43c2499f
Branches
Tags
2 merge requests!922Master,!918Community slider navigation percent
......@@ -375,7 +375,7 @@ class ZendAfi_View_Helper_Accueil_Base extends ZendAfi_View_Helper_ModuleAbstrac
$options->width = $preferences['op_navigation_window_width'];
$options->height= $preferences['op_navigation_window_height'];
$options->strategy = $preferences['op_navigation_mode'];
$options->unit = $preferences['op_navigation_unit'];
$options->unit = isset($preferences['op_navigation_unit']) ? $preferences['op_navigation_unit'] : 'px';
$options->cycle = isset($preferences['op_navigation_cycle']) ? $preferences['op_navigation_cycle'] : 0 ;
Class_ScriptLoader::getInstance()
......
......@@ -941,7 +941,8 @@ abstract class CalendarHelperDisplayModeTestCase extends CalendarViewHelperTestC
'mode-affichage' => 'diaporama_navigation',
'op_navigation_window_width' => '350',
'op_navigation_window_height' => '250',
'op_navigation_mode' => 'next_previous']];
'op_navigation_mode' => 'next_previous',
'op_navigation_unit' => 'px']];
$this->setupParams($params);
$helper = new ZendAfi_View_Helper_Accueil_Calendar(12, $params);
......@@ -974,7 +975,7 @@ class CalendarHelperWithDiaporamaNavigationModeTest extends CalendarHelperDispla
public function sliderNavigationShouldBeCallForWidget12() {
$this->assertXPathContentContains($this->_head_script,
'//script[@type="text/javascript"]',
'$(function(){$("#boite_12").slider_navigation({"width":"350","height":"250","strategy":"next_previous","cycle":0});});',
'$(function(){$("#boite_12").slider_navigation({"width":"350","height":"250","strategy":"next_previous","unit":"px","cycle":0});});',
$this->_head_script);
}
......
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