[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/search/engine/solr/tests/ -> engine_test.php (summary)

Solr earch engine base unit tests. Required params: - define('TEST_SEARCH_SOLR_HOSTNAME', '127.0.0.1'); - define('TEST_SEARCH_SOLR_PORT', '8983'); - define('TEST_SEARCH_SOLR_INDEXNAME', 'unittest');

Copyright: 2015 David Monllao {@link http://www.davidmonllao.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 738 lines (28 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

search_solr_engine_testcase:: (17 methods):
  setUp()
  tearDown()
  file_indexing_provider()
  test_connection()
  test_index()
  test_search()
  test_delete()
  test_alloweduserid()
  test_highlight()
  test_index_file()
  test_reindexing_files()
  test_index_filtered_file()
  test_delete_by_id()
  test_solr_filling()
  setup_user_hidden_docs()
  test_get_query_total_count()
  test_manager_paged_search()


Class: search_solr_engine_testcase  - X-Ref

Solr search engine base unit tests.

setUp()   X-Ref


tearDown()   X-Ref
No description

file_indexing_provider()   X-Ref
Simple data provider to allow tests to be run with file indexing on and off.


test_connection()   X-Ref
No description

test_index($fileindexing)   X-Ref


test_search($fileindexing)   X-Ref
Better keep this not very strict about which or how many results are returned as may depend on solr engine config.

return: void

test_delete($fileindexing)   X-Ref


test_alloweduserid($fileindexing)   X-Ref


test_highlight($fileindexing)   X-Ref


test_index_file()   X-Ref
No description

test_reindexing_files()   X-Ref
No description

test_index_filtered_file()   X-Ref
Test indexing a file we don't consider indexable.


test_delete_by_id()   X-Ref
No description

test_solr_filling($fileindexing)   X-Ref
Test that expected results are returned, even with low check_access success rate.


setup_user_hidden_docs($user)   X-Ref
Create 40 docs, that will be return from Solr in 10 hidden, 10 visible, 10 hidden, 10 visible if you query for:
Something1 Something2 Something3 Something4, with the specified user set.


test_get_query_total_count($fileindexing)   X-Ref
Test that counts are what we expect.


test_manager_paged_search($fileindexing)   X-Ref
Test that paged results are what we expect.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1