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

hotline #50082 fix test failures

parent 26bd31f9
Branches
Tags
6 merge requests!2080Sandbox detach zf from storm,!2061Master,!2009Master,!2008Hotline master,!2003Hotline#50082 mixed records links in loans list,!1917[WIP] Hotline#50082 mixed records links in loans list
Pipeline #333 failed with stage
in 9 minutes and 24 seconds
......@@ -32,12 +32,11 @@ abstract class AbonneControllerLoansHistoryTestCase extends AbstractControllerTe
public function setUp() {
parent::setUp();
$webservice = 'http://mon_sigb_koha.org';
$library = $this->fixture('Class_IntBib',
['id' => 1,
'comm_sigb' => Class_IntBib::COM_KOHA,
'comm_params' => ['url_serveur' => $webservice]]);
'comm_params' => ['url_serveur' => static::BASE_URL]]);
$faustine = $this->fixture('Class_Users', ['id' => 12,
'login' => 'faustine',
......@@ -87,17 +86,13 @@ class AbonneControllerLoansHistorySuccessfulTest extends AbonneControllerLoansH
public function setUp() {
parent::setUp();
$pomme = $this->fixture('Class_Notice',
['id' => 1456,
'clef_alpha' => 'POMME',
'titre' => 'Tarte au pommes']);
$this->fixture('Class_Exemplaire', ['id' => 123,
'notice' => $pomme,
$this->fixture('Class_Exemplaire', ['id' => 123789,
'notice' => $this->fixture('Class_Notice',
['id' => 1456])
->setTitrePrincipal('Cedric :Chaud et froid Vol 6'),
'code_barres' => '31301009564282',
'id_int_bib' => 1]);
$this->mock_web_client
->whenCalled('open_url')
->with(static::BASE_URL . 'rest.pl/user/byid/34/issues_history')
......@@ -113,6 +108,7 @@ class AbonneControllerLoansHistorySuccessfulTest extends AbonneControllerLoansH
$this->assertAction('loans-history');
}
/** @test */
public function titleShouldBeDisplay() {
$this->assertXPathContentContains('//table', 'Cedric :Chaud et froid Vol 6');
......
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