Commit 662c94c9 authored by efalcy's avatar efalcy

sandbox , add test for order displayed

parent b917c120
......@@ -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());
}
}
Markdown is supported
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