diff --git a/library/Class/Cosmogramme/Integration/PhasePanier.php b/library/Class/Cosmogramme/Integration/PhasePanier.php index f34395bdd8f386d34a9e416dd4e37055d6f9c3f3..181d29b6d3e75551a54f914ede50f4e475e663ea 100644 --- a/library/Class/Cosmogramme/Integration/PhasePanier.php +++ b/library/Class/Cosmogramme/Integration/PhasePanier.php @@ -113,9 +113,6 @@ class Class_Cosmogramme_Integration_PhasePanier $owners = $this->findPossibleOwnersOfBasketRecord($map); if ($owners->isEmpty()) { $user = Class_Users::find(1); - $this->_log->error($this->_('Le panier "%s" est orphelin. Il sera rattaché à l\'utilisateur "%s"', - $map['libelle'], - $user->getLogin())); $owners->addAll([$user]); } @@ -168,10 +165,6 @@ class Class_Cosmogramme_Integration_PhasePanier if (($count == $count_items) && $record->isSigb() ){ - $this->_log->log($this->_('Un exemplaire id_origine : %s / id_int_bib : %s a été trouvé. alors que nous cherchions id_int_bib %s\n', - $id_notice_sigb, - $item_id_int_bib, - $id_int_bib)); return $item; } @@ -183,9 +176,6 @@ class Class_Cosmogramme_Integration_PhasePanier protected function _noItem($id_notice_sigb, $id_int_bib) : Class_Exemplaire { - $this->_log->error($this->_('L\'exemplaire id_origine : %s / id_int_bib : %s n\'a pas été trouvé.', - $id_notice_sigb, - $id_int_bib)); return (new Class_Exemplaire_Null) ->setIdOrigine($id_notice_sigb) ->setIdIntBib($id_int_bib); diff --git a/tests/library/Class/Cosmogramme/Integration/PhasePanierTest.php b/tests/library/Class/Cosmogramme/Integration/PhasePanierTest.php index d06e21cd17798f377902f0f0ff1c816d8f5c3fe8..2c04e2b1d115291e8290b6f718b18931c129f1cd 100644 --- a/tests/library/Class/Cosmogramme/Integration/PhasePanierTest.php +++ b/tests/library/Class/Cosmogramme/Integration/PhasePanierTest.php @@ -380,18 +380,6 @@ class PhasePanierFullImportTest extends PhasePanierKohaTestCase { $this->assertEquals(['AFFAIRETOURNESOL'], Class_PanierNotice::find(2)->getClesNotices()); } - - - /** @test */ - public function logShouldContainsPanierOrphelinTrouNoir() { - $this->assertLogContains('Le panier "trou noir" est orphelin. Il sera rattaché à l\'utilisateur "milou_pro"'); - } - - - /** @test */ - public function logShouldContainsPanierOrphelinVideSideral() { - $this->assertLogContains('Le panier "vide sideral" est orphelin. Il sera rattaché à l\'utilisateur "milou_pro"'); - } } @@ -604,12 +592,6 @@ class PhasePanierNanookWithGhostItemsTest extends PhasePanierNanookTestCase { } - /** @test */ - public function panierNoticesLogShouldContainsCastafiore() { - $this->assertLogContains('Un exemplaire id_origine : 45633 / id_int_bib : 3 a été trouvé. alors que nous cherchions id_int_bib 2'); - } - - /** @test */ public function panierNoticesShouldContainsCastafiore() { $this->assertContains('CASTAFIORE',Class_PanierNotice::findFirstBy(['id_sigb' => 509])->getNotices());