Skip to content
Snippets Groups Projects
Commit c52690a6 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #24865 add test

parent 16d94e15
Branches
Tags
2 merge requests!1177Dev#24865 pnb ergonomie interface emprunt,!1156Dev#24865 pnb ergonomie interface emprunt
......@@ -140,6 +140,14 @@ class BibNumeriqueContollerDilicomAjaxPopupBookActionTest extends BibNumeriqueCo
}
/** @test */
public function loanBookPopupShouldContainsLinkToDownload() {
$this->dispatch('/bib-numerique/loan-book-ajax/id/3', true);
$this->assertContains('<a href=\"\/bib-numerique\/download-loan-book-ajax\/id\/3\" data-popup=\"true\" class=\"button blue\">oui<\/a>', $this->_response->getBody());
}
/** @test */
public function loanBookPopupShouldContainsAnswerYes() {
$this->dispatch('/bib-numerique/loan-book-ajax/id/3', true);
......
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