Bug 17538: (Bug 17216 follow-up) Fix t/db_dependent/Upload.t
The insert into authorised_values failed because of the missing FK Test plan: prove t/db_dependent/Upload.t should return green Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
b286868ec9
commit
be9a609870
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ sub test06 { #some extra tests for get
|
|||
sub test07 { #simple test for httpheaders and getCategories
|
||||
my @hdrs = Koha::Upload->httpheaders('does_not_matter_yet');
|
||||
is( @hdrs == 4 && $hdrs[1] =~ /application\/octet-stream/, 1, 'Simple test for httpheaders');
|
||||
$dbh->do("INSERT INTO authorised_values (category, authorised_value, lib) VALUES (?,?,?) ", undef, ( 'UPLOAD', 'HAVE_AT_LEAST_ONE', 'Hi there' ));
|
||||
my $builder = t::lib::TestBuilder->new;
|
||||
$builder->build({ source => 'AuthorisedValue', value => { category => 'UPLOAD', authorised_value => 'HAVE_AT_LEAST_ONE', lib => 'Hi there' } });
|
||||
my $cat = Koha::Upload->getCategories;
|
||||
is( @$cat >= 1, 1, 'getCategories returned at least one category' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue