mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 12:16:07 +00: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()
|
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();
|
$this->asEditor();
|
||||||
|
|
||||||
$accentSearch = $this->get('/search?term=' . urlencode('áéíí'));
|
$accentSearch = $this->get('/search?term=' . urlencode('áéíí'));
|
||||||
$accentSearch->assertStatus(200)->assertSee($page->name);
|
$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);
|
$smallSearch->assertStatus(200)->assertSee($page->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user