Skip to content
Snippets Groups Projects
Commit 662c94c9 authored by efalcy's avatar efalcy
Browse files

sandbox , add test for order displayed

parent b917c120
Branches
Tags
5 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1120Master,!1079Dev #17782 merge print fusion,!1073Dev#17782 bonus 1 imprimer la liste des notices,!1062Sandbox fusion search result and print
......@@ -65,7 +65,7 @@ class RechercheControllerPrintActionWithRecordsTest extends AbstractControllerTe
$this->fixture('Class_ModeleFusion', ['id' => 1,
'nom' => 'recherche',
'contenu' => '<p> {notices.each[<img src="{url_vignette}"/> {titre_principal} <div>{article.contenu}</div>
'contenu' => '<p> {notices.each[<img src="{url_vignette}"/> <h1>{titre_principal}</h1> <div>{article.contenu}</div>
]}</p>']);
Class_Indexation_PseudoNotice::index( $this->fixture('Class_Article' , ['id' => 10,
......@@ -81,7 +81,7 @@ class RechercheControllerPrintActionWithRecordsTest extends AbstractControllerTe
'notice' => new Class_Notice(),
'type_doc_id' => Class_TypeDoc::ARTICLE]));
$this->dispatch("/recherche/print/expressionRecherche/pomme/strategy/Notice/ids/1%3B2/modele_fusion/1",true);
$this->dispatch("/recherche/print/expressionRecherche/pomme/strategy/Notice/ids/2;1/modele_fusion/1",true);
}
......@@ -106,6 +106,15 @@ class RechercheControllerPrintActionWithRecordsTest extends AbstractControllerTe
/** @test */
public function contenuShouldContainsTransmetropolitan() {
$this->assertXPathContentContains("//div", "transmetropolitan", $this->_response->getBody());
$this->assertXPathContentContains("//div//h1[1]", "transmetropolitan", $this->_response->getBody());
}
/** @test */
public function pommeShouldBeDisplayedAfterTransmetropolitan() {
$this->assertXPathContentContains("//h1[2]", "pomme", $this->_response->getBody());
}
}
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