Bug 19392: Clean-up behind auth_values_input_www.t

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!

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 269c21d984)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 354645ef30)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Jonathan Druart 2017-09-29 16:28:13 -03:00 committed by Katrin Fischer
parent 52305a98fa
commit cb95d0bfbf
1 changed files with 5 additions and 1 deletions

View File

@ -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,4 +198,4 @@ if ($id_to_del2) {
ok($id_to_del2 ne undef, "error, link to delete not working");
}
1;
Koha::AuthorisedValueCategories->find($category)->delete; # Clean up