From 17f2709095c4d37b475fa26d4339ec9c139ab187 Mon Sep 17 00:00:00 2001
From: Laurent Laffont <llaffont@afi-sa.fr>
Date: Tue, 3 Jan 2017 12:14:47 +0100
Subject: [PATCH] rel #50182 : try to fixture koha service

---
 tests/library/ZendAfi/View/Helper/Status/JsonTest.php | 5 ++++-
 tests/library/ZendAfi/View/Helper/Status/TestCase.php | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/library/ZendAfi/View/Helper/Status/JsonTest.php b/tests/library/ZendAfi/View/Helper/Status/JsonTest.php
index 87a988ca5ff..3297ae7d558 100644
--- a/tests/library/ZendAfi/View/Helper/Status/JsonTest.php
+++ b/tests/library/ZendAfi/View/Helper/Status/JsonTest.php
@@ -131,9 +131,11 @@ class ZendAfi_View_Helper_Status_JsonTest extends ZendAfi_View_Helper_Status_Tes
                          'url' => 'http://localhost/koha',
                          'communication_status' => 'error',
                          ],
-                        $this->_report['ils'][0]);
+                        $this->_report['ils'][0],
+                        Class_IntBib::find(5)->getSigbComm()->test());
   }
 
+
   /** @test */
   public function sixILSShouldBeNanookOnError() {
     $this->assertEquals(['type' => 'nanook',
@@ -143,6 +145,7 @@ class ZendAfi_View_Helper_Status_JsonTest extends ZendAfi_View_Helper_Status_Tes
                         $this->_report['ils'][1]);
   }
 
+
   /** @test */
   public function ArteVodShouldEnabled() {
     $this->assertContains(["code" => "ARTEVOD",
diff --git a/tests/library/ZendAfi/View/Helper/Status/TestCase.php b/tests/library/ZendAfi/View/Helper/Status/TestCase.php
index ed821380bb6..8dfca3546cc 100644
--- a/tests/library/ZendAfi/View/Helper/Status/TestCase.php
+++ b/tests/library/ZendAfi/View/Helper/Status/TestCase.php
@@ -111,7 +111,7 @@ abstract class ZendAfi_View_Helper_Status_TestCase extends ViewHelperTestCase {
 
 
   protected function _setupILS() {
-    Class_WebService_SIGB_Koha::reset();
+
     $this->fixture('Class_IntBib',
                    ['id' => 5,
                     'comm_params' => ['url_serveur' => 'http://localhost/koha'],
-- 
GitLab