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

hotline #53821 fix failure

parent 221ed01a
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!2061Master,!2010hotline #53821 when search done via a POST request, redirects to well formed url…
Pipeline #391 failed with stage
in 9 minutes and 38 seconds
......@@ -40,10 +40,12 @@ class RechercheControllerPrintActionLinkTest extends AbstractControllerTestCase
->whenCalled('fetchAll')
->with("select id_notice, facettes from notices Where MATCH(facettes) AGAINST('+(APaul)' IN BOOLEAN MODE) order by annee desc", true, false)
->answers([ [1, ''] ])
->whenCalled('fetchAll')
->answers([$this->fixture('Class_Notice',
['id' => 1])->toArray()])
->beStrict();
Zend_Registry::set('sql', $mock_sql);
$this->dispatch('/recherche/simple/id_catalogue/3/id_module/9/aleatoire/1', true);
}
......@@ -51,7 +53,7 @@ class RechercheControllerPrintActionLinkTest extends AbstractControllerTestCase
/** @test */
public function printLinkShouldBePresent() {
$this->assertXPathContentContains('//a[contains(@href, "/recherche/print/id_catalogue/3/id_module/9/aleatoire/1/filtres/APaul%3B/ids/1/strategy/Notice_List/modele_fusion/1")][@target="_blank"]',
$this->assertXPathContentContains('//a[contains(@href, "/recherche/print/id_catalogue/3/id_module/9/aleatoire/1/ids/1/strategy/Notice_List/modele_fusion/1")][@target="_blank"]',
'Imprimer',
$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