Bug 7333 - Fixing up db_dependent/Search.t to use sample data Thanks to Chris N....
authorLiz Rea <wizzyrea@gmail.com>
Thu, 15 Dec 2011 16:21:36 +0000 (10:21 -0600)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 27 Dec 2011 17:41:10 +0000 (18:41 +0100)
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 <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
t/db_dependent/Search.t

index 31316f2..17fac6e 100644 (file)
@@ -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");