For starters, solr_index_and_search.test tries to use "nid" instead of "id" when building documents to index, so nothing is indexed.

Comments

janusman’s picture

Title: Tests do not pass anymore » Tests fail

Title change

jpmckinney’s picture

Status: Postponed » Needs work
StatusFileSize
new8.16 KB

Yes, tests are spectacularly broken. apachesolr_drupal_query() no longer stores queries like a factory. Some functions have been renamed. Some signatures have changed.

I fixed the two unit tests as much as possible. Some tests in solr_base_query.test and solr_base_subquery.test still fail, because get_url_queryvalues() will only return filters whose corresponding fields exist in the index (and we don't have an index).

To get those tests passing, and the tests in solr_index_and_search.test, we should incorporate #418920: create mock Solr class for unit testing.

Also, apachesolr_nodeaccess.test depends on nodeaccess being installed. It also assumes the nodeaccess realms nodeaccess_rid and nodeaccess_author are defined.

Committed http://drupal.org/cvs?commit=357952 http://drupal.org/cvs?commit=357956

jpmckinney’s picture

Status: Needs review » Postponed
jpmckinney’s picture

jpmckinney’s picture

Status: Needs work » Closed (duplicate)
kenorb’s picture

Status: Closed (duplicate) » Active
kenorb’s picture

Status: Active » Closed (fixed)
kenorb’s picture

Title: Tests fail » solr_index_and_search tests fail