View | Details | Raw Unified | Return to bug 20607
Collapse All | Expand All

(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t (-2 / +3 lines)
Lines 48-53 use_ok('Koha::SearchEngine::Elasticsearch'); Link Here
48
48
49
my $schema = Koha::Database->new->schema;
49
my $schema = Koha::Database->new->schema;
50
50
51
$schema->storage->txn_begin;
52
51
Koha::SearchFields->search->delete;
53
Koha::SearchFields->search->delete;
52
Koha::SearchMarcMaps->search->delete;
54
Koha::SearchMarcMaps->search->delete;
53
$schema->resultset('SearchMarcToField')->search->delete;
55
$schema->resultset('SearchMarcToField')->search->delete;
Lines 63-66 is($match_sf->weight, '15.00', 'Match search field is weighted with 15'); Link Here
63
my $title_sf = Koha::SearchFields->search({ name => 'title' })->next;
65
my $title_sf = Koha::SearchFields->search({ name => 'title' })->next;
64
is($title_sf->weight, '20.00', 'Title search field is weighted with 20');
66
is($title_sf->weight, '20.00', 'Title search field is weighted with 20');
65
67
66
$schema->storage->txn_begin;
68
$schema->storage->txn_rollback;
67
- 

Return to bug 20607