From 25bbc181c9ceacd84582368f0006d4025250ea1f Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 9 Jun 2017 18:52:17 -0400 Subject: [PATCH] Bug 18773: Fix failing history.t test 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 Works correctly using text plan provided and passes QA tools. Signed-off-by: Jonathan Druart --- t/db_dependent/www/history.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/www/history.t b/t/db_dependent/www/history.t index 0ad9c949ee..b71f7b66b5 100644 --- a/t/db_dependent/www/history.t +++ b/t/db_dependent/www/history.t @@ -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'); -- 2.11.0