From b1424d1631a0a048c0d9bad81f8de6bbfac3d07e Mon Sep 17 00:00:00 2001 From: llaffont <llaffont@git-test.afi-sa.fr> Date: Fri, 24 Aug 2012 13:28:20 +0000 Subject: [PATCH] Le titre de la page reprends le titre de l'article en cours de visualisation --- application/modules/opac/controllers/CmsController.php | 2 +- .../modules/opac/controllers/CmsControllerTest.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/application/modules/opac/controllers/CmsController.php b/application/modules/opac/controllers/CmsController.php index 00ff006c71e..5e619503ea9 100644 --- a/application/modules/opac/controllers/CmsController.php +++ b/application/modules/opac/controllers/CmsController.php @@ -113,7 +113,7 @@ class CmsController extends Zend_Controller_Action { $article = $article->getTraductionLangue($langue); $this->view->article = $article; - $this->view->title = $article->getTitre(); + $this->view->titreAdd($article->getTitre()); } diff --git a/tests/application/modules/opac/controllers/CmsControllerTest.php b/tests/application/modules/opac/controllers/CmsControllerTest.php index da219272a2c..13c7f0eb838 100644 --- a/tests/application/modules/opac/controllers/CmsControllerTest.php +++ b/tests/application/modules/opac/controllers/CmsControllerTest.php @@ -408,6 +408,12 @@ class CmsControllerArticleViewTest extends CmsControllerWithFeteDeLaFriteTestCas } + /** @test */ + public function pageTitleShouldContainsLaFeteDeLaFrite() { + $this->assertXpathContentContains('//title', 'La fête de la frite'); + } + + /** @test */ public function calendarDateShouldBeDu3SeptembreAu5Octobre() { $this->assertXpathContentContains('//span[@class="calendar_event_date"]', 'Du 03 septembre au 05 octobre'); -- GitLab