Issue #2083773 by Pete B: Fixed SearchExcerpt test has a small problem.
parent
e4e8066524
commit
c3ef2d30d9
|
@ -51,7 +51,7 @@ class SearchExcerptTest extends WebTestBase {
|
|||
$this->assertEqual($result, 'The quick brown <strong>fox</strong> & 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észítése ', 20);
|
||||
|
|
Loading…
Reference in New Issue