Bug 18982: Use KOHA_INTRANET_URL instead of syspref staffClientBaseURL
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 25 Jul 2017 17:37:27 +0000 (14:37 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 25 Jul 2017 19:56:53 +0000 (16:56 -0300)
That way we do not need to set the syspref, we can define it setting an
env var, like other tests.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/selenium/basic_workflow.t

index 2a91923..e260268 100644 (file)
@@ -48,7 +48,7 @@ use MARC::Field;
 my $dbh = C4::Context->dbh;
 my $login = 'koha';
 my $password = 'koha';
-my $base_url= 'http://'.C4::Context->preference("staffClientBaseURL")."/cgi-bin/koha/";
+my $base_url= ( $ENV{KOHA_INTRANET_URL} || 'http://'.C4::Context->preference("staffClientBaseURL") ) . "/cgi-bin/koha/";
 
 my $number_of_biblios_to_insert = 3;
 our $sample_data = {