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>
use URI::Escape;
use Encode;
+use Koha::AuthorisedValueCategories;
+
my $testdir = File::Spec->rel2abs( dirname(__FILE__) );
my $koha_conf = $ENV{KOHA_CONF};
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';
ok($id_to_del2 ne undef, "error, link to delete not working");
}
+Koha::AuthorisedValueCategories->find($category)->delete; # Clean up