Skip to content
Snippets Groups Projects
Commit 1441848e authored by gloas's avatar gloas
Browse files

correction test serie

git-svn-id: http://afi-forge.afi-sa.fr/svn/opacce/trunk@2544 e3cc70dd-a52f-4065-8a26-0e09943c8c5c
parent 6541b887
No related merge requests found
......@@ -736,12 +736,12 @@ class NoticeAjaxControllerPeriodiqueSerieTest extends AbstractControllerTestCase
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Notice')
->whenCalled('findAllBy')
->with(['clef_chapeau' => 'FAKIR',
'order' => 'tome_alpha'])
'order' => 'tome_alpha desc'])
->answers([$fakir56, $fakir57]);
$this->dispatch('/noticeajax/series?id_notice=234',true);
$this->assertXPathContentContains('//a[contains(@href,"/recherche/simple/serie/FAKIR/tri/date_creation+desc")]', utf8_encode('Voir tous les numéros de Fakir'),$this->_response->getBody());
$this->dispatch('/noticeajax/series/id_notice/234',true);
$this->assertXPathContentContains('//a[contains(@href,"/recherche/simple/id_notice/234/serie/FAKIR/tri/date_creation+desc")]', utf8_encode('Voir tous les numéros de Fakir'),$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