diff --git a/library/ZendAfi/Controller/Action/Helper/View.php b/library/ZendAfi/Controller/Action/Helper/View.php index a2fe18dc7d555985696c6e767c3b83a6afaaa60c..cad8aa44bd12841d8b9dae44d9a00e1b4f63f112 100644 --- a/library/ZendAfi/Controller/Action/Helper/View.php +++ b/library/ZendAfi/Controller/Action/Helper/View.php @@ -53,8 +53,8 @@ class ZendAfi_Controller_Action_Helper_View extends Zend_View { public function setModuleControllerActionNames($module, $controller, $action) { - $this->bodyParam = sprintf('class="%s_%s"', - $controller, $action); + $this->bodyParam = sprintf('class="%s_%s profil_%d"', + $controller, $action, Class_Profil::getCurrentProfil()->getId()); } diff --git a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php index 4b73996892052d8bed6277553ffc41d83e7b490e..25c47b222f14c4c160c3f82d76b1096ddffbeb42 100644 --- a/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php +++ b/tests/application/modules/opac/controllers/ProfilOptionsControllerTest.php @@ -426,6 +426,12 @@ class ProfilOptionsControllerProfilJeunesseViewPageJeuxTest extends ProfilOption } + /** @test */ + public function bodyClassShouldBeIndexIndexProfil12() { + $this->assertXPath('//body[@class="index_index profil_12"]'); + } + + /** @test */ public function titleShouldBeJeuxForPageJeux() { $this->assertQueryContentContains('head title', 'Jeux');