diff options
Diffstat (limited to 'tests/app/Models/SearchTest.php')
| -rw-r--r-- | tests/app/Models/SearchTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index 90aca6a24..b7cb43f8f 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -752,6 +752,11 @@ final class SearchTest extends \PHPUnit\Framework\TestCase { ['^ab\\M'] ], [ + 'intitle:/\\b\\d+/', + '(e.title ~ ? )', + ['\\y\\d+'] + ], + [ 'author:/^ab$/', "(REPLACE(e.author, ';', '\n') ~ ? )", ['^ab$'] @@ -820,6 +825,11 @@ final class SearchTest extends \PHPUnit\Framework\TestCase { ['(?-i)(?m)^ab$'] ], [ + 'intitle:/\\b\\d+/', + "(e.title REGEXP ? )", + ['(?-i)\\b\\d+'] + ], + [ 'intext:/^ab$/m', '(UNCOMPRESS(e.content_bin) REGEXP ?) )', ['(?-i)(?m)^ab$'] |
