Bug 17216: Fix tests
Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
parent
3f72fa15f2
commit
4454c85b92
1 changed files with 4 additions and 0 deletions
|
@ -6,14 +6,18 @@ use Test::More tests => 14;
|
||||||
use C4::Context;
|
use C4::Context;
|
||||||
use Koha::AuthorisedValue;
|
use Koha::AuthorisedValue;
|
||||||
use Koha::AuthorisedValues;
|
use Koha::AuthorisedValues;
|
||||||
|
use Koha::AuthorisedValueCategories;
|
||||||
|
|
||||||
my $dbh = C4::Context->dbh;
|
my $dbh = C4::Context->dbh;
|
||||||
$dbh->{AutoCommit} = 0;
|
$dbh->{AutoCommit} = 0;
|
||||||
$dbh->{RaiseError} = 1;
|
$dbh->{RaiseError} = 1;
|
||||||
|
|
||||||
$dbh->do("DELETE FROM authorised_values");
|
$dbh->do("DELETE FROM authorised_values");
|
||||||
|
$dbh->do("DELETE FROM authorised_value_categories");
|
||||||
|
|
||||||
# insert
|
# insert
|
||||||
|
Koha::AuthorisedValueCategory->new({ category_name => 'av_for_testing' })->store;
|
||||||
|
Koha::AuthorisedValueCategory->new({ category_name => 'aaav_for_testing' })->store;
|
||||||
my $av1 = Koha::AuthorisedValue->new(
|
my $av1 = Koha::AuthorisedValue->new(
|
||||||
{
|
{
|
||||||
category => 'av_for_testing',
|
category => 'av_for_testing',
|
||||||
|
|
Loading…
Reference in a new issue