You are here

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

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

Tests parsing a simple query with two terms.

File

./apachesolr_proximity.test, line 83
Contains ApachesolrProximityUnitTestCase.

Class

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

Code

public function testParseMultipleTermQuery() {
  $parsed = apachesolr_proximity_parse_query('blue drop');
  $this
    ->addExpected('blue', 'term');
  $this
    ->addExpected('drop', 'term');
  $this
    ->assertEqual($parsed, $this
    ->getExpected(), t('Multiple terms correctly parsed from search query.'), 'Apache Solr Term Proximity');
}