1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Merge pull request #6793 from wallabag/fix-4414

Fix search when search term has useless space
This commit is contained in:
Nicolas Lœuillet 2023-08-21 20:19:16 +02:00 committed by GitHub
commit 981d6a47da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -1418,6 +1418,18 @@ class EntryControllerTest extends WallabagCoreTestCase
$this->assertCount(4, $crawler->filter($this->entryDataTestAttribute));
// Add a check with useless spaces before and after the search term
$crawler = $client->request('GET', '/unread/list');
$form = $crawler->filter('form[name=search]')->form();
$data = [
'search_entry[term]' => ' title ',
];
$crawler = $client->submit($form, $data);
$this->assertCount(4, $crawler->filter($this->entryDataTestAttribute));
// Search on starred list
$crawler = $client->request('GET', '/starred/list');