projects
/
virtual-ldap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce613f2
)
configure OPAC_URL
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 14 Jul 2011 20:23:45 +0000
(20:23 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 14 Jul 2011 20:23:45 +0000
(20:23 +0000)
t/koha/02-create-test-user.t
patch
|
blob
|
history
diff --git
a/t/koha/02-create-test-user.t
b/t/koha/02-create-test-user.t
index
3b60b96
..
afcb887
100755
(executable)
--- a/
t/koha/02-create-test-user.t
+++ b/
t/koha/02-create-test-user.t
@@
-20,9
+20,10
@@
sub save {
print $fh @_;
warn "# save $path ", -s $path, " bytes\n";
}
print $fh @_;
warn "# save $path ", -s $path, " bytes\n";
}
-
-$mech->get_ok( 'https://localhost', 'opac' );
+my $opac_url = $ENV{OPAC_URL} || 'http://ffzg.koha-dev.rot13.org';
+
+$mech->get_ok( $opac_url, "opac $opac_url" );
save $mech->content;
$mech->follow_link_ok({ url_regex => qr/opac-user/i }, 'login form' );
save $mech->content;
$mech->follow_link_ok({ url_regex => qr/opac-user/i }, 'login form' );