Bug 25538: Don't run search_utf8.t if KOHA_*_URL empty
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Jun 2020 08:50:05 +0000 (10:50 +0200)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Wed, 17 Jun 2020 22:13:36 +0000 (00:13 +0200)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7c4d2444057dd2f8ae613ad73328f880258810c7)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit d1f60037b9d390c4d91bee61b06b7dfda368f3c1)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

(cherry picked from commit 27831fe44293b9503da082739c16dd31f5de87db)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

t/db_dependent/www/search_utf8.t

index 85a227a..859b011 100644 (file)
@@ -67,11 +67,11 @@ my $opac     = $ENV{KOHA_OPAC_URL};
 
 
 # test KOHA_INTRANET_URL is set
-if ( not defined $intranet ) {
+if ( not $intranet ) {
    plan skip_all => "Tests skip. You must set env. variable KOHA_INTRANET_URL to do tests\n";
 }
 # test KOHA_OPAC_URL is set
-elsif ( not defined $opac ) {
+elsif ( not $opac ) {
    plan skip_all => "Tests skip. You must set env. variable KOHA_OPAC_URL to do tests\n";
 }
 else {