You are here

function GoogleMiniTest::testSomeResults in Google Search Appliance 5

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

File

tests/googlemini.test, line 50

Class

GoogleMiniTest

Code

function testSomeResults() {
  $g = clone $this->stockMini;
  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) {
  }
}