From: Dan Brown Date: Sun, 15 Oct 2017 18:24:06 +0000 (+0100) Subject: Updated search test to fit with new tokenization X-Git-Tag: v0.18.4~1^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/0d5d77d8ab3d34b5cae0ccbc0231441533f39bbb Updated search test to fit with new tokenization --- diff --git a/tests/Entity/EntitySearchTest.php b/tests/Entity/EntitySearchTest.php index 587430918..28c0f1764 100644 --- a/tests/Entity/EntitySearchTest.php +++ b/tests/Entity/EntitySearchTest.php @@ -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); }