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

hotline #61801 : restore required vertical carousel option

parent ebed4f68
Branches
Tags
3 merge requests!2334Master,!2241Stable,!2236hotline #61801 : restore required vertical carousel option
Pipeline #2053 passed with stage
in 16 minutes and 9 seconds
- ticket #61801 : Kiosques avec visualisation barres verticale : correction de l'affichage vide
\ No newline at end of file
<table cellspacing="2" width="100%">
<tr>
<td class="droite" width="130px">Vitesse de défilement&nbsp;</td>
<td class="gauche"><?php $this->view->tagSlider("op_speed",$preferences["op_speed"],100,1000,10) ?></td>
</tr>
<tr>
<td class="droite" width="130px">Vitesse de défilement&nbsp;</td>
<td class="gauche"><?php $this->view->tagSlider("op_speed",$preferences["op_speed"],100,1000,10) ?></td>
</tr>
<tr>
<td class="droite">Largeur de l'image&nbsp;</td>
<td class="gauche"><?php $this->view->tagSlider("op_largeur_img",$preferences["op_largeur_img"],50,1000,5) ?></td>
</tr>
<tr>
<td class="droite">Nbre d'images en hauteur&nbsp;</td>
<td class="gauche"><?php $this->view->comboNombres("op_visible", $preferences["op_visible"], 2, 5, 1); ?></td>
</tr>
<tr>
<td class="droite">Hauteur de l'image&nbsp;</td>
<td class="gauche"><?php $this->view->tagSlider("op_hauteur_img",$preferences["op_hauteur_img"],50,1000,5) ?></td>
</tr>
<tr>
<td class="droite">Largeur de l'image&nbsp;</td>
<td class="gauche"><?php $this->view->tagSlider("op_largeur_img",$preferences["op_largeur_img"],50,1000,5) ?></td>
</tr>
<tr>
<td class="droite">Hauteur de l'image&nbsp;</td>
<td class="gauche"><?php $this->view->tagSlider("op_hauteur_img",$preferences["op_hauteur_img"],50,1000,5) ?></td>
</tr>
</table>
......@@ -21,9 +21,15 @@
class Admin_AccueilControllerKiosqueDispatchTest extends Admin_AbstractControllerTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
$this->onLoaderOfModel('Class_PanierNotice')
->whenCalled('findAllBelongsToAdmin')
->answers([]);
$this->dispatch('/admin/accueil/kiosque/type_module/KIOSQUE', true);
}
......@@ -38,4 +44,39 @@ class Admin_AccueilControllerKiosqueDispatchTest extends Admin_AbstractControlle
public function domainesPaniersJsonUrlShouldResetActionParameters() {
$this->assertXPathContentContains('//script', 'getJSON("/admin/catalogue/domaines-paniers.json",', $this->_response->getBody());
}
}
class Admin_AccueilControllerKiosqueVerticalCarouselTest
extends Admin_AbstractControllerTestCase {
protected $_storm_default_to_volatile = true;
public function setUp() {
parent::setUp();
$this->onLoaderOfModel('Class_PanierNotice')
->whenCalled('findAllBelongsToAdmin')
->answers([]);
$profil = $this->fixture('Class_Profil', ['id' => 12]);
$config = $profil->getModuleAccueilConfig(22, 'KIOSQUE');
$config['preferences']['style_liste'] = 'mycarousel_vertical';
$profil->updateModuleConfigAccueil(22, $config);
$this->dispatch('/admin/accueil/kiosque/config/accueil/id_profil/12/id_module/22/type_module/KIOSQUE', true);
}
/** @test */
public function styleListeMyCarouserVerticalShouldBeSelected() {
$this->assertXPath('//select[@name="style_liste"]//option[@value="mycarousel_vertical"][@selected]');
}
/** @test */
public function opVisibleSelectShouldBePresent() {
$this->assertXPath('//select[@name="op_visible"]');
}
}
\ 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