From: Liz Rea Date: Thu, 15 Dec 2011 16:21:36 +0000 (-0600) Subject: Bug 7333 - Fixing up db_dependent/Search.t to use sample data Thanks to Chris N.... X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=3c12d5f2f63ac06ac8f71c1a5598bc01c82e5802 Bug 7333 - Fixing up db_dependent/Search.t to use sample data Thanks to Chris N. for helping figure out that it was because there were no French stopwords in the DB that the test was failing. Patch changes the French string (with French stopwords) to an English string with English stopwords, as only English stopwords are installed in the default data. This patch will allow Search.t to run on the database attached to this bug. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 31316f2170..17fac6eafd 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -23,7 +23,7 @@ foreach my $string ("Leçon","modèles") { ok($results[0] eq $string,"$string is not modified"); } -foreach my $string ("Les chaussettes de l'archiduchesse") { +foreach my $string ("A book about the stars") { my @results=C4::Search::_remove_stopwords($string,"kw"); $debug && warn "$string ",Dump(@results); ok($results[0] ne $string,"$results[0] from $string");