function SearchMatchTestCase::getText2

_test2_: Helper method for generating snippets of content.

Generated items to test against: 8 dear 9 king philip 10 philip came over 11 came over from germany 12 over from germany swimming

2 calls to SearchMatchTestCase::getText2()
SearchMatchTestCase::_setup in drupal-7.x/modules/search/search.test
Set up a small index of items to test against.
SearchMatchTestCase::_setup in drupal-7.x/modules/search/search.test
Set up a small index of items to test against.

Archivo

drupal-7.x/modules/search/search.test, line 88
Tests for search.module.

Class

SearchMatchTestCase

Código

function getText2($n) {
  $words = explode(' ', "Dear King Philip came over from Germany swimming.");
  return implode(' ', array_slice($words, $n - 1, $n));
}