function DrupalSolrQueryTests::testParseSimple in Apache Solr Search 5
Same name and namespace in other branches
- 6.2 tests/solr_base_query.test \DrupalSolrQueryTests::testParseSimple()
File
- tests/
solr_base_query.test, line 25
Class
Code
function testParseSimple() {
$result = TRUE;
foreach ($this->queries as $string) {
$query =& apachesolr_drupal_query($string, TRUE);
// force the query to be rebuilt without removing any fields.
$query
->remove_field('fake-field-name');
if (!$this
->assertEqual($string, $query
->get_query())) {
$result = FALSE;
}
}
return $result;
}