diff options
| author | 2025-06-29 11:09:08 +0200 | |
|---|---|---|
| committer | 2025-06-29 11:09:08 +0200 | |
| commit | c8bbf355342985c83054c6c36c6538a780ab509e (patch) | |
| tree | 87286cac4e98769b3a14308e042abdd4d83153e4 /tests/app | |
| parent | 7c57f38008136202ba7b38e3154ac87be4eefb68 (diff) | |
Add search operator `c:` for categories (#7696)
* Add search operator `c:` for categories
fix https://github.com/FreshRSS/FreshRSS/discussions/7692
Allow searching for e.g. `c:23,34`
Diffstat (limited to 'tests/app')
| -rw-r--r-- | tests/app/Models/SearchTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index a62e255de..1e8855aa3 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -367,6 +367,11 @@ class SearchTest extends PHPUnit\Framework\TestCase { [1, 2, 3, 4, 5, 6, 7] ], [ + 'c:1 OR c:2,3', + ' (e.id_feed IN (SELECT f.id FROM `_feed` f WHERE f.category IN (?)) ) OR (e.id_feed IN (SELECT f.id FROM `_feed` f WHERE f.category IN (?,?)) ) ', + [1, 2, 3] + ], + [ '#tag Hello OR (author:Alice inurl:example) OR (f:3 intitle:World) OR L:12', " ((TRIM(e.tags) || ' #' LIKE ? AND (e.title LIKE ? OR e.content LIKE ?) )) OR ((e.author LIKE ? AND e.link LIKE ? )) OR" . ' ((e.id_feed IN (?) AND e.title LIKE ? )) OR ((e.id IN (SELECT et.id_entry FROM `_entrytag` et WHERE et.id_tag IN (?)) )) ', |
