You are here

function GoogleMiniTest::testSomeResults in Google Search Appliance 6.2

Same name and namespace in other branches
  1. 5 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) {
  }
}