@@ -, +, @@ --- t/db_dependent/Koha/Biblio.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha/Biblio.t +++ a/t/db_dependent/Koha/Biblio.t @@ -651,9 +651,11 @@ subtest 'get_marc_notes() UNIMARC tests' => sub { $schema->storage->txn_rollback; }; -subtest 'host_items' => sub { +subtest 'host_items() tests' => sub { plan tests => 6; + $schema->storage->txn_begin; + my $biblio = $builder->build_sample_biblio( { frameworkcode => '' } ); t::lib::Mocks::mock_preference( 'EasyAnalyticalRecords', 1 ); @@ -686,4 +688,5 @@ subtest 'host_items' => sub { is( ref($host_items), 'Koha::Items' ); is( $host_items->count, 0 ); + $schema->storage->txn_rollback; }; --