From c2ba4a05fde5a9db976a6e871adac78f0b57f5ca Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 9 Nov 2018 15:47:30 +0100 Subject: [PATCH] Bug 19181: [17.11.x] pick opac_base_url --- t/lib/Selenium.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/lib/Selenium.pm b/t/lib/Selenium.pm index 57a553557e..0ebba51e33 100644 --- a/t/lib/Selenium.pm +++ b/t/lib/Selenium.pm @@ -22,7 +22,7 @@ use Carp qw( croak ); use C4::Context; use base qw(Class::Accessor); -__PACKAGE__->mk_accessors(qw(login password base_url selenium_addr selenium_port driver)); +__PACKAGE__->mk_accessors(qw(login password base_url opac_base_url selenium_addr selenium_port driver)); sub new { my ( $class, $params ) = @_; @@ -31,6 +31,7 @@ sub new { $self->{login} = $params->{login} || $config->{login}; $self->{password} = $params->{password} || $config->{password}; $self->{base_url} = $params->{base_url} || $config->{base_url}; + $self->{opac_base_url} = $params->{opac_base_url} || $config->{opac_base_url}; $self->{selenium_addr} = $params->{selenium_addr} || $config->{selenium_addr}; $self->{selenium_port} = $params->{selenium_port} || $config->{selenium_port}; $self->{driver} = Selenium::Remote::Driver->new( @@ -54,6 +55,7 @@ sub config { login => $ENV{KOHA_USER} || 'koha', password => $ENV{KOHA_PASS} || 'koha', base_url => ( $ENV{KOHA_INTRANET_URL} || C4::Context->preference("staffClientBaseURL") ) . "/cgi-bin/koha/", + opac_base_url => ( $ENV{KOHA_OPAC_URL} || C4::Context->preference("OPACBaseURL") ) . "/cgi-bin/koha/", selenium_addr => $ENV{SELENIUM_ADDR} || 'localhost', selenium_port => $ENV{SELENIUM_PORT} || 4444, }; -- 2.39.5