aboutsummaryrefslogtreecommitdiff
path: root/tests/app/Models/SearchTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/Models/SearchTest.php')
-rw-r--r--tests/app/Models/SearchTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php
index 74c1596f6..3fb5a144f 100644
--- a/tests/app/Models/SearchTest.php
+++ b/tests/app/Models/SearchTest.php
@@ -330,6 +330,16 @@ class SearchTest extends PHPUnit\Framework\TestCase {
' ((e.id IN (SELECT et.id_entry FROM `_entrytag` et, `_tag` t WHERE et.id_tag = t.id AND t.name IN (?)) )) ',
['%tag%','%Hello%','%Alice%','%example%','3','%World%', 'Bleu']
],
+ [
+ '!((author:Alice intitle:hello) OR (author:Bob intitle:world))',
+ ' NOT (((e.author LIKE ? AND e.title LIKE ? )) OR ((e.author LIKE ? AND e.title LIKE ? ))) ',
+ ['%Alice%', '%hello%', '%Bob%', '%world%'],
+ ],
+ [
+ '(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%'],
+ ]
];
}
}