function DrupalSolrQueryTests::testAddTerm in Apache Solr Search 6.2
Same name and namespace in other branches
- 5 tests/solr_base_query.test \DrupalSolrQueryTests::testAddTerm()
File
- tests/
solr_base_query.test, line 50 - Tests for the apachsolr module: base query.
Class
- DrupalSolrQueryTests
- JacobSingh: Warning! This test is totally broken because of the addition of the "hash" in apachesolr_search.module. Needs to be moved out.
Code
function testAddTerm() {
foreach ($this->queries as $string) {
$query = apachesolr_drupal_query($string);
$query
->add_filter('wham', '1');
$this
->assertEqual($string, $query
->get_query_basic());
$this
->assertEqual(array(
'filters' => 'wham:1',
), $query
->get_url_queryvalues());
}
}