Skip to content
Snippets Groups Projects

Dev#73934 explo suivi bibliondemand

Merged Ghislain Loas requested to merge dev#73934_explo_suivi_bibliondemand into master
Viewing commit 65a3e7c5
Show latest version
1 file
+ 15
4
Preferences
Compare changes
@@ -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();