From 861bce53c314eb410c2a87229b33aca70f882814 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 6 Oct 2021 13:44:16 -0300 Subject: [PATCH] Bug 27526: (QA follow-up) Wrap tests in transaction Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- t/db_dependent/Koha/Biblio.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index 4b52e49fb6..a9ed0ad98d 100755 --- a/t/db_dependent/Koha/Biblio.t +++ b/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; }; -- 2.39.5