mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Updated search test to fit with new tokenization
This commit is contained in:
parent
db51cee2d8
commit
0d5d77d8ab
@ -33,13 +33,13 @@ class EntitySearchTest extends TestCase
|
||||
|
||||
public function test_searching_accents_and_small_terms()
|
||||
{
|
||||
$page = $this->newPage(['name' => 'My new test quaffleachits', 'html' => 'some áéííúü¿¡ test content {a2 orange dog']);
|
||||
$page = $this->newPage(['name' => 'My new test quaffleachits', 'html' => 'some áéííúü¿¡ test content a2 orange dog']);
|
||||
$this->asEditor();
|
||||
|
||||
$accentSearch = $this->get('/search?term=' . urlencode('áéíí'));
|
||||
$accentSearch->assertStatus(200)->assertSee($page->name);
|
||||
|
||||
$smallSearch = $this->get('/search?term=' . urlencode('{a'));
|
||||
$smallSearch = $this->get('/search?term=' . urlencode('a2'));
|
||||
$smallSearch->assertStatus(200)->assertSee($page->name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user