From eac82841a147fabb2a0e1b8e8cd72baa8c3eeb15 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Sep 2017 16:28:13 -0300 Subject: [PATCH] Bug 19392: Clean-up behind auth_values_input_www.t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The two categories created by this test script are not removed Test plan: without this patch, the two authorised value categories 学協会μμ and tòmas are not removed when the script finishes. Now it does! --- t/db_dependent/www/auth_values_input_www.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/www/auth_values_input_www.t b/t/db_dependent/www/auth_values_input_www.t index e40d7e45d3..0d265293ea 100644 --- a/t/db_dependent/www/auth_values_input_www.t +++ b/t/db_dependent/www/auth_values_input_www.t @@ -28,6 +28,8 @@ use POSIX; use URI::Escape; use Encode; +use Koha::AuthorisedValueCategories; + my $testdir = File::Spec->rel2abs( dirname(__FILE__) ); my $koha_conf = $ENV{KOHA_CONF}; @@ -135,6 +137,8 @@ if ($id_to_del) { ok($id_to_del ne undef, "error, link to delete not working"); } +Koha::AuthorisedValueCategories->find($category)->delete; # Clean up + #---------------------------------------- Test with only latin utf-8 (could be taken as Latin-1/ISO 8859-1) $category = 'tòmas'; @@ -194,3 +198,4 @@ if ($id_to_del2) { ok($id_to_del2 ne undef, "error, link to delete not working"); } +Koha::AuthorisedValueCategories->find($category)->delete; # Clean up -- 2.11.0