Updated search test to fit with new tokenization

This commit is contained in:
Dan Brown 2017-10-15 19:24:06 +01:00
parent db51cee2d8
commit 0d5d77d8ab
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -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);
}