Skip to content
Snippets Groups Projects

Hotline 6.55

Merged Ghislain Loas requested to merge hotline_6.55 into hotline_#17249_auto_open_vertical_menu
Viewing commit 4dba61a1
Show latest version
1 file
+ 14
4
Preferences
Compare changes
@@ -487,10 +487,20 @@ class CalendarWithCategoryLimitAndBibPreferencesTest extends CalendarViewHelperT
'events_only' => true,
'published' => false))
->answers(array($this->nanook2, $this->opac4, $this->amber))
->whenCalled('getArticlesByPreferences')
->with(array(
'display_order' => 'EventDebut',
'id_categorie' => '12-3',
'events_only' => true,
'event_date' => '2011-03-17',
'id_bib' => 5,
'id_lieu' => '',
'custom_fields' => [],
'published' => false))
->answers(array($this->nanook2, $this->opac4, $this->amber))
->beStrict();
$this->html = $helper->getBoite();
}
@@ -506,7 +516,7 @@ class CalendarWithCategoryLimitAndBibPreferencesTest extends CalendarViewHelperT
/** @test */
function titleMonthFirstLinkShouldGoToFebruary() {
$this->assertXPath($this->html,
'//td[@class="calendar_title_month"]//a[1][contains(@href, "cms/calendar/date/2011-02/id_module/2/id_profil/2/select_id_categorie/all")]',
'//td[@class="calendar_title_left_arrow"]//a[1][contains(@href, "cms/calendar/date/2011-02/id_module/2/id_profil/2/select_id_categorie/all")]',
$this->html);
}
@@ -514,7 +524,7 @@ class CalendarWithCategoryLimitAndBibPreferencesTest extends CalendarViewHelperT
/** @test */
function titleMonthSecondLinkShouldLinkToArticleViewByDate() {
$this->assertXPath($this->html,
'//td[@class="calendar_title_month"]//a[2][contains(@href, "cms/articleviewbydate/d/2011-03/id_module/2/id_profil/2/select_id_categorie/all")]',
'//td[@class="calendar_title_month"]//a[1][contains(@href, "cms/articleviewbydate/d/2011-03/id_module/2/id_profil/2/select_id_categorie/all")]',
$this->html);
}
@@ -522,7 +532,7 @@ class CalendarWithCategoryLimitAndBibPreferencesTest extends CalendarViewHelperT
/** @test */
function titleMonthLastLinkShouldGoToApril() {
$this->assertXPath($this->html,
'//td[@class="calendar_title_month"]//a[3][contains(@href, "cms/calendar/date/2011-04/id_module/2/id_profil/2/select_id_categorie/all")]',
'//td[@class="calendar_title_right_arrow"]//a[1][contains(@href, "cms/calendar/date/2011-04/id_module/2/id_profil/2/select_id_categorie/all")]',
$this->html);
}