diff --git a/VERSIONS_HOTLINE/113429 b/VERSIONS_HOTLINE/113429 new file mode 100644 index 0000000000000000000000000000000000000000..0081684b1fa1ff5299c1335ab4273f7c137f534d --- /dev/null +++ b/VERSIONS_HOTLINE/113429 @@ -0,0 +1 @@ + - ticket #113429 : Magasin de thèmes : correction de l'affichage de la page suggestion d'achat \ No newline at end of file diff --git a/library/templates/Intonation/Library/View/Wrapper/User/RichContent/NewSuggestion.php b/library/templates/Intonation/Library/View/Wrapper/User/RichContent/NewSuggestion.php index c3e43158a2f724bcdade70d9207dec572ba825fa..97ef534e223a21c13b21f116d4fe5b2df09e0bc5 100644 --- a/library/templates/Intonation/Library/View/Wrapper/User/RichContent/NewSuggestion.php +++ b/library/templates/Intonation/Library/View/Wrapper/User/RichContent/NewSuggestion.php @@ -88,9 +88,9 @@ class Intonation_Library_View_Wrapper_User_RichContent_NewSuggestion extends Int } if (trim($this->_preferences['help-text'])) - $html [] = $this->tag('p', - $this->_preferences['help-text'], - ['class' => 'help-text']); + $html [] = $this->_view->tag('p', + $this->_preferences['help-text'], + ['class' => 'help-text']); $html [] = $this->_view->renderForm($this->_form); diff --git a/tests/scenarios/Templates/TemplatesTest.php b/tests/scenarios/Templates/TemplatesTest.php index f860a8e8c9496025fe6929de0f60123fd7c45485..41ca0673d88264b5bb8760fc1f42d3e0574cdf31 100644 --- a/tests/scenarios/Templates/TemplatesTest.php +++ b/tests/scenarios/Templates/TemplatesTest.php @@ -5349,3 +5349,34 @@ class TemplatesDispatchSearchWithFacetsTest extends TemplatesIntonationTestCase $this->assertXPath('//li[contains(@class, "facet_type_A")]'); } } + + + + +class TemplatesSuggestionAchatAddTest extends TemplatesIntonationTestCase { + public function setUp() { + parent::setUp(); + + Class_Profil::find(72) + ->setModulePreference('abonne', + 'suggestion-achat-add', + 'help-text', + 'Entrez votre suggestion'); + + $this->dispatch('/opac/abonne/suggestion-achat-add/id_profil/72'); + } + + + /** @test */ + public function pageShouldContainsJumbotronPHelpTextWithEntrezVotreSuggestion() { + $this->assertXPathContentContains('//div[@class="jumbotron_section_content"]//p[@class="help-text"]', + 'Entrez votre suggestion'); + } + + + /** @test */ + public function pageTitleShouldBeSuggestionAchat() { + $this->assertXPathContentContains('//title', + 'Suggérer un achat'); + } +} \ No newline at end of file