Lines 87-97
subtest "_build_initial_query tests" => sub {
Link Here
|
87 |
|
87 |
|
88 |
($query,$query_cgi,$query_desc,$previous_operand) = |
88 |
($query,$query_cgi,$query_desc,$previous_operand) = |
89 |
C4::Search::_build_initial_query($params); |
89 |
C4::Search::_build_initial_query($params); |
90 |
is( $query, "query and parsed_operand", |
90 |
is( $query, "query AND parsed_operand", |
91 |
"\$query built correctly (no operator)"); |
91 |
"\$query built correctly (no operator)"); |
92 |
is( $query_cgi, "query_cgi&op=%20and%20&idx=index&q=original_operand", |
92 |
is( $query_cgi, "query_cgi&op=%20AND%20&idx=index&q=original_operand", |
93 |
"\$query_cgi built correctly (no operator)"); |
93 |
"\$query_cgi built correctly (no operator)"); |
94 |
is( $query_desc, "query_desc and index_plus original_operand", |
94 |
is( $query_desc, "query_desc AND index_plus original_operand", |
95 |
"\$query_desc build correctly (no operator)"); |
95 |
"\$query_desc build correctly (no operator)"); |
96 |
is( $previous_operand, "previous_operand", |
96 |
is( $previous_operand, "previous_operand", |
97 |
"\$query build correctly (no operator)"); |
97 |
"\$query build correctly (no operator)"); |
98 |
- |
|
|