diff --git a/library/ZendAfi/View/Helper/Division.php b/library/ZendAfi/View/Helper/Division.php index b774343d49d6b8e21b0ac8620c55dafd8f0d5531..a35f753b6b7c4c0d254159dd194b0bb0b67b1b52 100644 --- a/library/ZendAfi/View/Helper/Division.php +++ b/library/ZendAfi/View/Helper/Division.php @@ -55,7 +55,7 @@ class ZendAfi_View_Helper_Division extends Zend_View_Helper_HtmlElement { public function getHtmlDivisionFive() { $this->setHtmlElementForDivision(); - $anchor = $this->content ? '<div class="show-division-five"></div>' : ''; + $anchor = ''; return sprintf('<div class="%1$s layout-division" data-division="%4$s">'. '%5$s'. diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index 7ec847156d5537a5239fcfcc797b63b8f8d8fd35..a764ea6f7d32357081973b6ce71828e90f5439ea 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -695,17 +695,17 @@ class ProfilOptionsControllerProfilJeunesseAndJeuxTest extends ProfilOptionsCont /** @test **/ - public function divisionFlottantShouldContainsMinimizeAnchor() { + public function divisionFlottantShouldContainsClassColFlottant() { ZendAfi_Auth::getInstance()->logUser(Class_Users::newInstanceWithId(34, ['login' => 'admin'])->beAdminPortail()); $this->dispatch('/opac'); - $this->assertXPath('//div[contains(@class,"colFlottant")]//div[@class="show-division-five"]',$this->_response->getBody()); + $this->assertXPath('//div[contains(@class,"colFlottant")]',$this->_response->getBody()); } /** @test **/ - public function divisionFlottantShouldNotContainsMinimizeAnchorWithOutLoggedUser() { + public function divisionFlottantShouldNotContainsColFlottantWithOutLoggedUser() { $this->dispatch('/opac'); - $this->assertNotXPath('//div[contains(@class,"colFlottant")]//div[@class="show-division-five"]',$this->_response->getBody()); + $this->assertNotXPath('//div[contains(@class,"colFlottant")]',$this->_response->getBody()); } }