You are here

function SearchMatchTest::_setup in SimpleTest 6

Same name and namespace in other branches
  1. 5 tests/search_match.test \SearchMatchTest::_setup()

Set up a small index of items to test against.

1 call to SearchMatchTest::_setup()
SearchMatchTest::test_matching in tests/search_match.test

File

tests/search_match.test, line 31

Class

SearchMatchTest

Code

function _setup() {
  $this
    ->drupalVariableSet('minimum_word_size', 3);
  for ($i = 1; $i <= 7; ++$i) {
    search_index($i, SEARCH_TYPE, $this
      ->_get_text($i));
  }
  search_update_totals();
}