Skip to content
Snippets Groups Projects
Commit bd46a6d3 authored by llaffont's avatar llaffont
Browse files

Correction injection style téléphone

parent 6a69e04b
Branches
Tags
No related merge requests found
......@@ -27,7 +27,7 @@ $(document).bind("mobileinit", function(){
->addSkinStyleSheet('global');
if ($this->profil->hasHeaderCss())
$head_scripts->addStyleSheeet($this->header_css);
$head_scripts->addStyleSheet($this->profil->getHeaderCss());
$script_loader = Class_ScriptLoader::getInstance()->beMobile();
......
......@@ -72,6 +72,7 @@ abstract class AbstractIndexControllerTelephoneWithModulesTest extends Telephone
->setTitreSite('Smartphone')
->setLibelle(null)
->setCfgAccueil($cfg_accueil)
->setHeaderCss('mon_style.css')
->setHauteurBanniere(150);
}
}
......@@ -99,6 +100,12 @@ class IndexControllerTelephoneSimulationWithModulesTest extends AbstractIndexCon
}
/** @test */
public function pageShouldContainsMonStyleCss() {
$this->assertXPath('//link[contains(@href, "mon_style.css")]');
}
/** @test */
function formRechercheShouldBeVisible() {
$this->assertXPath('//form[contains(@action, "recherche/simple")]');
......
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