You are here

function GoogleMiniTest::testSearchCache in Google Search Appliance 5

Same name and namespace in other branches
  1. 6.2 tests/googlemini.test \GoogleMiniTest::testSearchCache()

File

tests/googlemini.test, line 64

Class

GoogleMiniTest

Code

function testSearchCache() {

  //not sure exactly how to do this yet... no listener, so it s a bit difficult.
  return;
  $this
    ->drupalVariableSet('google_appliance_cache_timeout', '10');
  for ($i = 0; $i < 3; $i++) {
    $g = clone $this->stockMini;
    $g->cache = true;
    cache_clear_all(null, 'cache_google');
    $g->debug_callback = 'google_appliance_test_cache_check';
    try {
      $query = "human";
      $g
        ->setKeywords($query);
      $result = $g
        ->query();
      $this
        ->assertNotEqual($result->totalResults, 0, "The Query {$query} did not return 0 results");
    } catch (GoogleMiniCriteriaException $e) {
    } catch (GoogleMiniResultException $e) {
    }
  }
}