[Rt-commit] r18075 - in rt/3.999/branches/merge_to_3.8.2: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 29 23:21:19 EST 2009
Author: sunnavy
Date: Thu Jan 29 23:21:19 2009
New Revision: 18075
Modified:
rt/3.999/branches/merge_to_3.8.2/ (props changed)
rt/3.999/branches/merge_to_3.8.2/t/ticket/search_by_watcher.t
Log:
r19334 at sunnavys-mb: sunnavy | 2009-01-30 09:45:42 +0800
merged t/ticket/search_by_watcher.t
Modified: rt/3.999/branches/merge_to_3.8.2/t/ticket/search_by_watcher.t
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/t/ticket/search_by_watcher.t (original)
+++ rt/3.999/branches/merge_to_3.8.2/t/ticket/search_by_watcher.t Thu Jan 29 23:21:19 2009
@@ -133,6 +133,24 @@
'Subject NOT LIKE "x" OR Requestor != "not-exist at example.com"' =>
{ xy => 1, x => 1, y => 1, '-' => 1, z => 1 },
+# group of cases when user doesn't exist in DB at all
+ 'Subject LIKE "x" AND Requestor = "not-exist at example.com"' =>
+ { xy => 0, x => 0, y => 0, '-' => 0, z => 0 },
+ 'Subject NOT LIKE "x" AND Requestor = "not-exist at example.com"' =>
+ { xy => 0, x => 0, y => 0, '-' => 0, z => 0 },
+ 'Subject LIKE "x" AND Requestor != "not-exist at example.com"' =>
+ { xy => 1, x => 1, y => 0, '-' => 0, z => 0 },
+ 'Subject NOT LIKE "x" AND Requestor != "not-exist at example.com"' =>
+ { xy => 0, x => 0, y => 1, '-' => 1, z => 1 },
+# 'Subject LIKE "x" OR Requestor = "not-exist at example.com"' =>
+# { xy => 1, x => 1, y => 0, '-' => 0, z => 0 },
+# 'Subject NOT LIKE "x" OR Requestor = "not-exist at example.com"' =>
+# { xy => 0, x => 0, y => 1, '-' => 1, z => 1 },
+ 'Subject LIKE "x" OR Requestor != "not-exist at example.com"' =>
+ { xy => 1, x => 1, y => 1, '-' => 1, z => 1 },
+ 'Subject NOT LIKE "x" OR Requestor != "not-exist at example.com"' =>
+ { xy => 1, x => 1, y => 1, '-' => 1, z => 1 },
+
'Subject LIKE "z" AND (Requestor = "x at example.com" OR Requestor = "y at example.com")' =>
{ xy => 0, x => 0, y => 0, '-' => 0, z => 0 },
'Subject NOT LIKE "z" AND (Requestor = "x at example.com" OR Requestor = "y at example.com")' =>
@@ -142,7 +160,6 @@
'Subject NOT LIKE "z" OR (Requestor = "x at example.com" OR Requestor = "y at example.com")' =>
{ xy => 1, x => 1, y => 1, '-' => 1, z => 0 },
-
'requestor = "x at example.com" AND requestor = "y at example.com"'
=> { xy => 1, x => 0, y => 0, '-' => 0, z => 0 },
More information about the Rt-commit
mailing list