From 104c10b248e34e4f0740b0960ba61becae90d81f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 10 Oct 2013 17:28:51 +0000 Subject: [PATCH] bug 8252: (follow-up) add search tests on music number There was some churn in previous patches about the desired name of the music publisher number index, so this patch adds tests to confirm that both the old and new names work as CCL keywords. To test: [1] Verify that t/db_dependent/Search.t passes. Signed-off-by: Galen Charlton --- t/db_dependent/Search.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 0ad129d011..f51347faba 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -12,7 +12,7 @@ use YAML; use C4::Debug; require C4::Context; -use Test::More tests => 158; +use Test::More tests => 162; use Test::MockModule; use MARC::Record; use File::Spec; @@ -276,6 +276,11 @@ sub run_search_tests { ( $error, $marcresults, $total_hits ) = SimpleSearch("kw=book", 0, 10); is($total_hits, 101, "SimpleSearch handles simple CCL"); + ( $error, $marcresults, $total_hits ) = SimpleSearch("Music-number=49631-2", 0, 10); + is($total_hits, 1, "SimpleSearch on music publisher number works (bug 8252)"); + ( $error, $marcresults, $total_hits ) = SimpleSearch("Identifier-publisher-for-music=49631-2", 0, 10); + is($total_hits, 1, "SimpleSearch on music publisher number works using Identifier-publisher-for-music (bug 8252)"); + # Testing getRecords my $results_hashref; -- 2.20.1