From a554095789bf845affcded404a49cbb5db582b4c Mon Sep 17 00:00:00 2001
From: llaffont <laurent.laffont@gmail.com>
Date: Tue, 21 Jan 2014 09:16:09 +0100
Subject: [PATCH] Correction fil Ariane sur page connexion

---
 library/ZendAfi/Controller/Action/Helper/View.php        | 4 ++--
 .../modules/opac/controllers/AuthControllerTest.php      | 9 +++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/library/ZendAfi/Controller/Action/Helper/View.php b/library/ZendAfi/Controller/Action/Helper/View.php
index 0f899cc9af5..e688a6acb58 100644
--- a/library/ZendAfi/Controller/Action/Helper/View.php
+++ b/library/ZendAfi/Controller/Action/Helper/View.php
@@ -208,8 +208,8 @@ class ZendAfi_Controller_Action_Helper_View extends Zend_View {
 
 	public function __set($key, $val) {
 		$this->$key = $val;
-		//	if (($key == 'titre') && !isset($this->_main_title))
-//			$this->_main_title = $val;
+		if (($key == 'titre') && !isset($this->_main_title))
+			$this->_main_title = $val;
 	}
 
 
diff --git a/tests/application/modules/opac/controllers/AuthControllerTest.php b/tests/application/modules/opac/controllers/AuthControllerTest.php
index 28ffe38c0b0..0df33877074 100644
--- a/tests/application/modules/opac/controllers/AuthControllerTest.php
+++ b/tests/application/modules/opac/controllers/AuthControllerTest.php
@@ -137,6 +137,15 @@ class AuthControllerAbonneSIGBLoggedTest extends PortailWithOneLoginModuleTestCa
 	public function linkSeDeconnecterShouldBePresent() {
 		$this->assertXPath('//div[@id="boite_login"]//a[contains(@href, "auth/logout")]');
 	}
+
+
+	/** @test */
+	public function pageAuthLoginBarreNavShouldBeConnexion() {
+		$this->bootstrap();
+		$this->dispatch('/opac/auth/login',true);
+	  $this->assertXPathContentContains('//div[@class="barre_nav"]/span','Connexion',$this->_response->getBody());
+	}
+
 }
 
 
-- 
GitLab