You are here

public function ApachesolrProximityUnitTestCase::testParsePhraseQuery in Apache Solr Term Proximity 7

Same name and namespace in other branches
  1. 6.3 apachesolr_proximity.test \ApachesolrProximityUnitTestCase::testParsePhraseQuery()

Tests parsing a phrase from a search query.

File

./apachesolr_proximity.test, line 93
Contains ApachesolrProximityUnitTestCase.

Class

ApachesolrProximityUnitTestCase
Test cases for the Apache Solr Term Proximity API functions.

Code

public function testParsePhraseQuery() {
  $parsed = apachesolr_proximity_parse_query('"blue drop"');
  $this
    ->addExpected('blue drop', 'phrase');
  $this
    ->assertEqual($parsed, $this
    ->getExpected(), t('Phrase correctly parsed from search query.'), 'Apache Solr Term Proximity');
}