Skip to content
Snippets Groups Projects
Commit 65a3e7c5 authored by efalcy's avatar efalcy
Browse files

dev #73934 : try to fix failure

parent 7a3a4a6c
Branches
Tags
3 merge requests!2660Master,!2619Dev#73934 explo suivi bibliondemand,!2610dev #73934 : explo bibliondemand , cosmogrammme can handle bibliondemand xml file
Pipeline #3939 failed with stage
in 26 minutes and 52 seconds
......@@ -54,12 +54,23 @@ abstract class AbstractRecordPhaseBibliondemandTestCase extends PhaseNoticeTestC
$this->fixture('Class_IntBib',
['id' => 3,
'nom_court' => 'Bibliondemand']);
$this->fixture('Class_Cosmogramme_Integration',
['id' => 888,
'bib' => Class_IntBib::find(3),
'profil_donnees' => Class_IntProfilDonnees::find(102),
'type_operation' => Class_Cosmogramme_Integration::TYPE_OPERATION_TOTAL,
'traite' => 'non',
'fichier' => 'records.txt',
'pointeur_reprise' => 0]);
$this->_prepareIntegration();
}
protected function _prepareIntegration() {
Class_Cosmogramme_Integration::find(999)
Class_Cosmogramme_Integration::find(888)
->setIdBib(3)
->setFichier('http://oai.bibliondemand.com/oaiserver.ashx?verb=ListRecords&metadataPrefix=oai_dc&set=CG62')
->save();
......@@ -222,7 +233,7 @@ class RecordPhaseBibliondemandUpdateTest extends AbstractRecordPhaseBibliondeman
public function _prepareFixtures() {
parent::_prepareFixtures();
Class_Cosmogramme_Integration::find(999)
Class_Cosmogramme_Integration::find(888)
->beIncrementImport()
->save();
......@@ -271,7 +282,7 @@ class RecordPhaseBibliondemandUpdateTest extends AbstractRecordPhaseBibliondeman
class RecordPhaseBibliondemandSimpleFileTest extends RecordPhaseBibliondemandSimpleTest {
protected function _prepareIntegration() {
Class_Cosmogramme_Integration::find(999)
Class_Cosmogramme_Integration::find(888)
->setIdBib(3)
->setFichier('Bibliondemand.xml')
->save();
......@@ -283,7 +294,7 @@ class RecordPhaseBibliondemandSimpleFileTest extends RecordPhaseBibliondemandSim
class RecordPhaseBibliondemandUpdateFileTest extends RecordPhaseBibliondemandUpdateTest {
protected function _prepareIntegration() {
Class_Cosmogramme_Integration::find(999)
Class_Cosmogramme_Integration::find(888)
->setIdBib(3)
->setFichier('Bibliondemand.xml')
->save();
......
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