Bug 20607: (QA follow-up) Test corrections

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2019-07-16 18:13:57 +00:00 committed by Martin Renvoize
parent d8830da219
commit 29ecb5b6c2
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,8 @@ use_ok('Koha::SearchEngine::Elasticsearch');
my $schema = Koha::Database->new->schema;
$schema->storage->txn_begin;
Koha::SearchFields->search->delete;
Koha::SearchMarcMaps->search->delete;
$schema->resultset('SearchMarcToField')->search->delete;
@ -63,4 +65,4 @@ is($match_sf->weight, '15.00', 'Match search field is weighted with 15');
my $title_sf = Koha::SearchFields->search({ name => 'title' })->next;
is($title_sf->weight, '20.00', 'Title search field is weighted with 20');
$schema->storage->txn_begin;
$schema->storage->txn_rollback;