From 5695dde0d914713692ec13328a9a098903be9b8f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 30 Aug 2016 12:09:03 +0100 Subject: [PATCH] Bug 17216: Fix tests Signed-off-by: Owen Leonard --- t/db_dependent/AuthorisedValues.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/AuthorisedValues.t b/t/db_dependent/AuthorisedValues.t index a1cbfef..e671385 100644 --- a/t/db_dependent/AuthorisedValues.t +++ b/t/db_dependent/AuthorisedValues.t @@ -6,14 +6,18 @@ use Test::More tests => 14; use C4::Context; use Koha::AuthorisedValue; use Koha::AuthorisedValues; +use Koha::AuthorisedValueCategories; my $dbh = C4::Context->dbh; $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; $dbh->do("DELETE FROM authorised_values"); +$dbh->do("DELETE FROM authorised_value_categories"); # insert +Koha::AuthorisedValueCategory->new({ category_name => 'av_for_testing' })->store; +Koha::AuthorisedValueCategory->new({ category_name => 'aaav_for_testing' })->store; my $av1 = Koha::AuthorisedValue->new( { category => 'av_for_testing', -- 2.8.1