function DrupalSolrQueryTests::testAddTerm in Apache Solr Search 5
Same name and namespace in other branches
- 6.2 tests/solr_base_query.test \DrupalSolrQueryTests::testAddTerm()
File
- tests/
solr_base_query.test, line 38
Class
Code
function testAddTerm() {
$result = TRUE;
foreach ($this->queries as $string) {
$query =& apachesolr_drupal_query($string, TRUE);
$query
->add_field('wham', '1');
if (!$this
->assertEqual($string . ' wham:1', $query
->get_query())) {
$result = FALSE;
}
}
return $result;
}