Issue #2083773 by Pete B: Fixed SearchExcerpt test has a small problem.

8.0.x
Alex Pott 2013-10-02 18:09:17 +01:00
parent e4e8066524
commit c3ef2d30d9
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class SearchExcerptTest extends WebTestBase {
$this->assertEqual($result, 'The quick brown <strong>fox</strong> &amp; jumps over the lazy dog ...', 'Found keyword is highlighted');
$longtext = str_repeat($text . ' ', 10);
$result = preg_replace('| +|', ' ', search_excerpt('nothing', $text));
$result = preg_replace('| +|', ' ', search_excerpt('nothing', $longtext));
$this->assertTrue(strpos($result, $expected) === 0, 'When keyword is not found in long string, return value starts as expected');
$entities = str_repeat('k&eacute;sz&iacute;t&eacute;se ', 20);