Skip to content
Snippets Groups Projects
Commit c7f35db1 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#113429_bt_suggestion_d_achat' into 'hotline'

hotline #113429 Templates : fix buy suggest page

See merge request !3558
parents 2c428844 3e7fccc0
1 merge request!3558hotline #113429 Templates : fix buy suggest page
Pipeline #10467 passed with stage
in 45 minutes and 53 seconds
- ticket #113429 : Magasin de thèmes : correction de l'affichage de la page suggestion d'achat
\ No newline at end of file
......@@ -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);
......
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment