Bug 11439: UT: fix XISBN.t test failure
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 24 Dec 2013 09:09:10 +0000 (10:09 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 27 Dec 2013 00:15:55 +0000 (00:15 +0000)
A unit test fails in t/db_dependent/XISBN.t, the get_xisbn routine, if
ThingISBN is enabled, returns the 3rd biblionumber, not the second one.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/XISBN.t

index e63bb2a..01bcc0f 100755 (executable)
@@ -52,7 +52,7 @@ $context->set_preference( 'ThingISBN', 1 );
 $context->set_preference( 'XISBN', 0 );
 my $results_thingisbn = C4::XISBN::get_xisbns($isbn1);
 is( $results_thingisbn->[0]->{biblionumber},
-    $biblionumber2,
+    $biblionumber3,
     "Gets correct biblionumber from a book with a similar isbn using ThingISBN." );
 
 $context->set_preference( 'ThingISBN', 0 );