From 722d9fac6207e99a86ad7859fa10cd4fb9ed25a5 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Thu, 29 Jan 2015 15:53:30 +0100 Subject: [PATCH 2/2] Bug 11193 : Followup - fix tests Content-Type: text/plain; charset="utf-8" This patch fixes one broken line in YAML configuration file It also changes the number of fields for keyword class from 111 to 121 in QueryParser.t --- etc/searchengine/queryparser.yaml | 2 +- t/QueryParser.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml index 1786e63..d1be17d 100644 --- a/etc/searchengine/queryparser.yaml +++ b/etc/searchengine/queryparser.yaml @@ -524,7 +524,7 @@ field_mappings: - ff8-19 - regularity-code label: Ff8-19 - ff8-21 + ff8-21: bib1_mapping: biblioserver: 1: 8821 diff --git a/t/QueryParser.t b/t/QueryParser.t index 7b69430..ad80b75 100644 --- a/t/QueryParser.t +++ b/t/QueryParser.t @@ -17,7 +17,7 @@ ok(defined $QParser, 'Successfully created empty QP object'); ok($QParser->load_config('./etc/searchengine/queryparser.yaml'), 'Loaded QP config'); is($QParser->search_class_count, 4, 'Initialized 4 search classes'); -is (scalar(@{$QParser->search_fields()->{'keyword'}}), 111, "Correct number of search fields for 'keyword' class"); +is (scalar(@{$QParser->search_fields()->{'keyword'}}), 121, "Correct number of search fields for 'keyword' class"); # Set keyword search as the default $QParser->default_search_class('keyword'); -- 1.7.9.5