Bug 21581: (RMaint follow-up) Skip deprecated GRS-1 test for feature
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 9 Nov 2018 13:03:17 +0000 (13:03 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 28 Nov 2018 12:57:56 +0000 (13:57 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit bc9408f9ace5274b03766f847b3374f374971479)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

t/db_dependent/Search.t

index cc5560f..1b71e57 100644 (file)
@@ -779,11 +779,13 @@ if ( $indexing_mode eq 'dom' ) {
         ['沙士北亞威廉姆'], 0, 10, '', '', 1
     );
     is($count, 1, 'MARC21 authorities: one hit on match contains "沙士北亞威廉姆"');
-    ($auths, $count) = SearchAuthorities(
-        ['LC-card-number'], ['and'], [''], ['contains'],
-        ['99282477'], 0, 10, '', '', 1
-    );
-    is($count, 1, 'MARC21 authorities: one hit on LC-card-number contains "99282477"');
+    if ($indexing_mode eq 'dom') {
+        ($auths, $count) = SearchAuthorities(
+            ['LC-card-number'], ['and'], [''], ['contains'],
+            ['99282477'], 0, 10, '', '', 1
+        );
+        is($count, 1, 'MARC21 authorities: one hit on LC-card-number contains "99282477"');
+    }
 
     $UseQueryParser = 1;
 
@@ -980,7 +982,7 @@ sub run_unimarc_search_tests {
 }
 
 subtest 'MARC21 + GRS-1' => sub {
-    plan tests => 111;
+    plan tests => 110;
     run_marc21_search_tests('grs1');
 };