From 42dfc8265936401c9b9ad89407bf05927fca1f85 Mon Sep 17 00:00:00 2001 From: efalcy <efalcy@afi-sa.fr> Date: Wed, 18 Apr 2018 16:42:45 +0200 Subject: [PATCH] dev #73934 : fix tests --- .../Integration/RecordPhaseBibliondemandTest.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/library/Class/Cosmogramme/Integration/RecordPhaseBibliondemandTest.php b/tests/library/Class/Cosmogramme/Integration/RecordPhaseBibliondemandTest.php index d6492daf41d..689a0374056 100644 --- a/tests/library/Class/Cosmogramme/Integration/RecordPhaseBibliondemandTest.php +++ b/tests/library/Class/Cosmogramme/Integration/RecordPhaseBibliondemandTest.php @@ -57,17 +57,9 @@ abstract class AbstractRecordPhaseBibliondemandTestCase extends PhaseNoticeTestC Class_Cosmogramme_Integration::find(999) ->setIdBib(3) - ->setFichier('http://oai.bibliondemand.com/oaiserver.ashx?verb=ListRecords&metadataPrefix=oai_dc&set=CG62') + ->setFichier('Bibliondemand.xml') ->save(); - $xml = file_get_contents(__DIR__.'/Bibliondemand.xml'); - $webclient = $this->mock(); - $webclient->whenCalled('open_url') - ->with('http://oai.bibliondemand.com/oaiserver.ashx?verb=ListRecords&metadataPrefix=oai_dc&set=CG62') - ->answers($xml) - ->beStrict(); - - Class_WebService_OAI::setDefaultHttpClient($webclient); } -- GitLab