search_suggestions.test.php 470 B

123456789101112131415161718
  1. <?php
  2. require_once api_get_path(SYS_CODE_PATH).'search/search_suggestions.php';
  3. class TestSearch extends UnitTestCase {
  4. public function __construct() {
  5. $this->UnitTestCase('Search suggestions library - main/search/search_suggestions.test.php');
  6. }
  7. function testGetSuggestionsFromSearchEngine() {
  8. //ob_start();
  9. $q=1;
  10. $res = get_suggestions_from_search_engine($q);
  11. $this->assertTrue(is_null($res));
  12. //ob_end_clean();
  13. //var_dump($res);
  14. }
  15. }
  16. ?>