Lines 75-82
subtest 'get_facetable_fields() tests' => sub {
Link Here
|
75 |
$builder->build({ |
75 |
$builder->build({ |
76 |
source => 'SearchField', |
76 |
source => 'SearchField', |
77 |
value => { |
77 |
value => { |
78 |
name => 'se', |
78 |
name => 'title-series', |
79 |
label => 'se', |
79 |
label => 'titles-series', |
80 |
type => 'string', |
80 |
type => 'string', |
81 |
facet_order => 4 |
81 |
facet_order => 4 |
82 |
} |
82 |
} |
Lines 118-124
subtest 'get_facetable_fields() tests' => sub {
Link Here
|
118 |
is($faceted_fields[1]->facet_order, 2); |
118 |
is($faceted_fields[1]->facet_order, 2); |
119 |
is($faceted_fields[2]->name, 'itype'); |
119 |
is($faceted_fields[2]->name, 'itype'); |
120 |
is($faceted_fields[2]->facet_order, 3); |
120 |
is($faceted_fields[2]->facet_order, 3); |
121 |
is($faceted_fields[3]->name, 'se'); |
121 |
is($faceted_fields[3]->name, 'title-series'); |
122 |
is($faceted_fields[3]->facet_order, 4); |
122 |
is($faceted_fields[3]->facet_order, 4); |
123 |
is($faceted_fields[4]->name, 'su-geo'); |
123 |
is($faceted_fields[4]->name, 'su-geo'); |
124 |
is($faceted_fields[4]->facet_order, 5); |
124 |
is($faceted_fields[4]->facet_order, 5); |
125 |
- |
|
|