Bug 18773: Fix failing history.t test
authorMark Tompsett <mtompset@hotmail.com>
Fri, 9 Jun 2017 22:52:17 +0000 (18:52 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jun 2017 13:36:17 +0000 (10:36 -0300)
changed get() to get_ok() and increased test count to match.
Now the master build will only fail on search_utf8.t

TEST PLAN
---------
assuming KOHA_CONF is set.
$ export KOHA_INTRANET_URL=...
$ export KOHA_OPAC_URL=...
$ prove -v t/db_dependent/www/history.t

run koha qa test tools

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Works correctly using text plan provided and passes QA tools.

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

index 0ad9c94..b71f7b6 100644 (file)
@@ -21,7 +21,7 @@ use utf8;
 use XML::Simple;
 use Encode;
 
-use Test::More tests => 2;
+use Test::More tests => 4;
 use Test::WWW::Mechanize;
 
 my $koha_conf = $ENV{KOHA_CONF};
@@ -48,13 +48,13 @@ $intranet =~ s#/$##;
 my $agent = Test::WWW::Mechanize->new( autocheck => 1 );
 
 # Login
-$agent->get( "$intranet/cgi-bin/koha/mainpage.pl", 'Load the intranet login page' );
+$agent->get_ok( "$intranet/cgi-bin/koha/mainpage.pl", 'Load the intranet login page' );
 $agent->form_name('loginform');
 $agent->field( 'password', $password );
 $agent->field( 'userid',   $user );
 $agent->field( 'branch',   '' );
 $agent->click( '', 'Login to the intranet' );
-$agent->get( "$intranet/cgi-bin/koha/about.pl", 'Load the about page' );
+$agent->get_ok( "$intranet/cgi-bin/koha/about.pl", 'Load the about page' );
 
 # Test about > timeline is correctly encoded
 my $encoded_latin_name    = Encode::encode('UTF-8', 'Frédéric Demians');