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

(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t (-4 / +6 lines)
Lines 17-23 Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Test::More tests => 16;
20
use Test::More tests => 18;
21
21
22
use Koha::Database;
22
use Koha::Database;
23
use Koha::SearchFields;
23
use Koha::SearchFields;
Lines 40-47 my $search_field = Koha::SearchFields->find_or_create( Link Here
40
        name    => 'title',
40
        name    => 'title',
41
        label   => 'Title',
41
        label   => 'Title',
42
        type    => 'string',
42
        type    => 'string',
43
        weight  => 17
43
        weight  => 17,
44
44
        staff_client => 0,
45
        opac         => 1,
45
    },
46
    },
46
    { key => 'name' } );
47
    { key => 'name' } );
47
48
Lines 92-97 my $mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings(); Link Here
92
is( $mappings->{biblios}{title}{type}, 'string', 'Title is of type string');
93
is( $mappings->{biblios}{title}{type}, 'string', 'Title is of type string');
93
is( $mappings->{biblios}{title}{label}, 'Title', 'title has label Title');
94
is( $mappings->{biblios}{title}{label}, 'Title', 'title has label Title');
94
is( $mappings->{biblios}{title}{facet_order}, undef, 'Facet order is undef');
95
is( $mappings->{biblios}{title}{facet_order}, undef, 'Facet order is undef');
96
is( $mappings->{biblios}{title}{opac}, 1, 'title is opac searchable');
97
is( $mappings->{biblios}{title}{staff_client}, 0, 'title is not staff searchable');
95
98
96
is(scalar(@{ $mappings->{biblios}{title}{mappings} }), 3, 'Title has 3 mappings');
99
is(scalar(@{ $mappings->{biblios}{title}{mappings} }), 3, 'Title has 3 mappings');
97
100
98
- 

Return to bug 25325