aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-01-09 12:59:09 +0100
committerGravatar GitHub <noreply@github.com> 2023-01-09 12:59:09 +0100
commit3fb8ab8eb5c88042320bbe006825b21f5a8f21de (patch)
tree3c7412d44bae45f4678cb5db3192ab22db58f2f7 /tests
parentb5a418ec1618cb1a058aee3dd47baa63562c9194 (diff)
Handling of parentheses as special characters in searches (#4989)
#fix https://github.com/FreshRSS/FreshRSS/issues/4987
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Models/SearchTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php
index fe686e7ba..52c10244d 100644
--- a/tests/app/Models/SearchTest.php
+++ b/tests/app/Models/SearchTest.php
@@ -339,6 +339,11 @@ class SearchTest extends PHPUnit\Framework\TestCase {
'(author:Alice intitle:hello) !(author:Bob intitle:world)',
' ((e.author LIKE ? AND e.title LIKE ? )) AND NOT ((e.author LIKE ? AND e.title LIKE ? )) ',
['%Alice%', '%hello%', '%Bob%', '%world%'],
+ ],
+ [
+ 'intitle:"\\(test\\)"',
+ '(e.title LIKE ? )',
+ ['%\\(test\\)%'],
]
];
}