[Rt-commit] r13190 - rt/branches/3.6-RELEASE/lib/t/regression

ruz at bestpractical.com ruz at bestpractical.com
Wed Jun 11 18:45:45 EDT 2008


Author: ruz
Date: Wed Jun 11 18:45:44 2008
New Revision: 13190

Modified:
   rt/branches/3.6-RELEASE/lib/t/regression/22search_tix_by_watcher.t

Log:
* new failing tests in searches by watchers :(

Modified: rt/branches/3.6-RELEASE/lib/t/regression/22search_tix_by_watcher.t
==============================================================================
--- rt/branches/3.6-RELEASE/lib/t/regression/22search_tix_by_watcher.t	(original)
+++ rt/branches/3.6-RELEASE/lib/t/regression/22search_tix_by_watcher.t	Wed Jun 11 18:45:44 2008
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 103;
+use Test::More tests => 119;
 use_ok('RT');
 RT::LoadConfig();
 RT::Init();
@@ -106,6 +106,7 @@
         { xy => 0, x => 1, y => 0, '-' => 0, z => 0 },
     'Subject NOT LIKE "x" AND Requestor != "y at example.com"' =>
         { xy => 0, x => 0, y => 0, '-' => 1, z => 1 },
+
     'Subject LIKE "x" OR Requestor = "y at example.com"' =>
         { xy => 1, x => 1, y => 1, '-' => 0, z => 0 },
     'Subject NOT LIKE "x" OR Requestor = "y at example.com"' =>
@@ -115,6 +116,24 @@
     'Subject NOT LIKE "x" OR Requestor != "y at example.com"' =>
         { xy => 0, 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")' =>


More information about the Rt-commit mailing list