mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
@ -106,4 +106,14 @@ class SearchIndexingTest extends TestCase
|
||||
$this->assertNull($scoreByTerm->get($term), "Failed asserting that \"$term\" is not indexed");
|
||||
}
|
||||
}
|
||||
|
||||
public function test_non_breaking_spaces_handled_as_spaces()
|
||||
{
|
||||
$page = $this->entities->newPage(['html' => '<p>a tigerbadger is a dangerous animal</p>']);
|
||||
|
||||
$scoreByTerm = $page->searchTerms()->pluck('score', 'term');
|
||||
$this->assertNotNull($scoreByTerm->get('tigerbadger'));
|
||||
$this->assertNotNull($scoreByTerm->get('dangerous'));
|
||||
$this->assertNotNull($scoreByTerm->get('animal'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user