[Rt-commit] r10692 - rt/branches/3.999-DANGEROUS/t/ticket
ruz at bestpractical.com
ruz at bestpractical.com
Sun Feb 3 16:34:28 EST 2008
Author: ruz
Date: Sun Feb 3 16:34:26 2008
New Revision: 10692
Modified:
rt/branches/3.999-DANGEROUS/t/ticket/search_by_watcher.t
Log:
* fix search by watcher
Modified: rt/branches/3.999-DANGEROUS/t/ticket/search_by_watcher.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/ticket/search_by_watcher.t (original)
+++ rt/branches/3.999-DANGEROUS/t/ticket/search_by_watcher.t Sun Feb 3 16:34:26 2008
@@ -53,37 +53,37 @@
}
@data = (
- { subject => 'xy', Requestor => ['x at example.com', 'y at example.com'] },
- { subject => 'x', Requestor => 'x at example.com' },
- { subject => 'y', Requestor => 'y at example.com' },
+ { subject => 'xy', requestor => ['x at example.com', 'y at example.com'] },
+ { subject => 'x', requestor => 'x at example.com' },
+ { subject => 'y', requestor => 'y at example.com' },
{ subject => '-', },
- { subject => 'z', Requestor => 'z at example.com' },
+ { subject => 'z', requestor => 'z at example.com' },
);
%test = (
- 'Requestor = "x at example.com"' => { xy => 1, x => 1, y => 0, '-' => 0, z => 0 },
- 'Requestor != "x at example.com"' => { xy => 0, x => 0, y => 1, '-' => 1, z => 1 },
+ 'requestor = "x at example.com"' => { xy => 1, x => 1, y => 0, '-' => 0, z => 0 },
+ 'requestor != "x at example.com"' => { xy => 0, x => 0, y => 1, '-' => 1, z => 1 },
- 'Requestor = "y at example.com"' => { xy => 1, x => 0, y => 1, '-' => 0, z => 0 },
- 'Requestor != "y at example.com"' => { xy => 0, x => 1, y => 0, '-' => 1, z => 1 },
+ 'requestor = "y at example.com"' => { xy => 1, x => 0, y => 1, '-' => 0, z => 0 },
+ 'requestor != "y at example.com"' => { xy => 0, x => 1, y => 0, '-' => 1, z => 1 },
- 'Requestor LIKE "@example.com"' => { xy => 1, x => 1, y => 1, '-' => 0, z => 1 },
- 'Requestor NOT LIKE "@example.com"' => { xy => 0, x => 0, y => 0, '-' => 1, z => 0 },
+ 'requestor LIKE "@example.com"' => { xy => 1, x => 1, y => 1, '-' => 0, z => 1 },
+ 'requestor NOT LIKE "@example.com"' => { xy => 0, x => 0, y => 0, '-' => 1, z => 0 },
- 'Requestor IS NULL' => { xy => 0, x => 0, y => 0, '-' => 1, z => 0 },
- 'Requestor IS NOT NULL' => { xy => 1, x => 1, y => 1, '-' => 0, z => 1 },
+ 'requestor IS NULL' => { xy => 0, x => 0, y => 0, '-' => 1, z => 0 },
+ 'requestor IS NOT NULL' => { xy => 1, x => 1, y => 1, '-' => 0, z => 1 },
# this test is a todo, we run it later
-# 'Requestor = "x at example.com" AND Requestor = "y at example.com"' => { xy => 1, x => 0, y => 0, '-' => 0, z => 0 },
- 'Requestor = "x at example.com" OR Requestor = "y at example.com"' => { xy => 1, x => 1, y => 1, '-' => 0, z => 0 },
+# 'requestor = "x at example.com" AND requestor = "y at example.com"' => { xy => 1, x => 0, y => 0, '-' => 0, z => 0 },
+ 'requestor = "x at example.com" OR requestor = "y at example.com"' => { xy => 1, x => 1, y => 1, '-' => 0, z => 0 },
- 'Requestor != "x at example.com" AND Requestor != "y at example.com"' => { xy => 0, x => 0, y => 0, '-' => 1, z => 1 },
- 'Requestor != "x at example.com" OR Requestor != "y at example.com"' => { xy => 0, x => 1, y => 1, '-' => 1, z => 1 },
+ 'requestor != "x at example.com" AND requestor != "y at example.com"' => { xy => 0, x => 0, y => 0, '-' => 1, z => 1 },
+ 'requestor != "x at example.com" OR requestor != "y at example.com"' => { xy => 0, x => 1, y => 1, '-' => 1, z => 1 },
- 'Requestor = "x at example.com" AND Requestor != "y at example.com"' => { xy => 0, x => 1, y => 0, '-' => 0, z => 0 },
- 'Requestor = "x at example.com" OR Requestor != "y at example.com"' => { xy => 1, x => 1, y => 0, '-' => 1, z => 1 },
+ 'requestor = "x at example.com" AND requestor != "y at example.com"' => { xy => 0, x => 1, y => 0, '-' => 0, z => 0 },
+ 'requestor = "x at example.com" OR requestor != "y at example.com"' => { xy => 1, x => 1, y => 0, '-' => 1, z => 1 },
- 'Requestor != "x at example.com" AND Requestor = "y at example.com"' => { xy => 0, x => 0, y => 1, '-' => 0, z => 0 },
- 'Requestor != "x at example.com" OR Requestor = "y at example.com"' => { xy => 1, x => 0, y => 1, '-' => 1, z => 1 },
+ 'requestor != "x at example.com" AND requestor = "y at example.com"' => { xy => 0, x => 0, y => 1, '-' => 0, z => 0 },
+ 'requestor != "x at example.com" OR requestor = "y at example.com"' => { xy => 1, x => 0, y => 1, '-' => 1, z => 1 },
);
@tickets = add_tix_from_data();
{
@@ -96,40 +96,40 @@
TODO: {
local $TODO = "we can't generate this query yet";
%test = (
- 'Requestor = "x at example.com" AND Requestor = "y at example.com"'
+ 'requestor = "x at example.com" AND requestor = "y at example.com"'
=> { xy => 1, x => 0, y => 0, '-' => 0, z => 0 },
);
run_tests();
}
@data = (
- { subject => 'xy', Cc => ['x at example.com'], Requestor => [ 'y at example.com' ] },
- { subject => 'x-', Cc => ['x at example.com'], Requestor => [] },
- { subject => '-y', Cc => [], Requestor => [ 'y at example.com' ] },
+ { subject => 'xy', cc => ['x at example.com'], requestor => [ 'y at example.com' ] },
+ { subject => 'x-', cc => ['x at example.com'], requestor => [] },
+ { subject => '-y', cc => [], requestor => [ 'y at example.com' ] },
{ subject => '-', },
- { subject => 'zz', Cc => ['z at example.com'], Requestor => [ 'z at example.com' ] },
- { subject => 'z-', Cc => ['z at example.com'], Requestor => [] },
- { subject => '-z', Cc => [], Requestor => [ 'z at example.com' ] },
+ { subject => 'zz', cc => ['z at example.com'], requestor => [ 'z at example.com' ] },
+ { subject => 'z-', cc => ['z at example.com'], requestor => [] },
+ { subject => '-z', cc => [], requestor => [ 'z at example.com' ] },
);
%test = (
- 'Cc = "x at example.com" AND Requestor = "y at example.com"' =>
+ 'cc = "x at example.com" AND requestor = "y at example.com"' =>
{ xy => 1, 'x-' => 0, '-y' => 0, '-' => 0, zz => 0, 'z-' => 0, '-z' => 0 },
- 'Cc = "x at example.com" OR Requestor = "y at example.com"' =>
+ 'cc = "x at example.com" OR requestor = "y at example.com"' =>
{ xy => 1, 'x-' => 1, '-y' => 1, '-' => 0, zz => 0, 'z-' => 0, '-z' => 0 },
- 'Cc != "x at example.com" AND Requestor = "y at example.com"' =>
+ 'cc != "x at example.com" AND requestor = "y at example.com"' =>
{ xy => 0, 'x-' => 0, '-y' => 1, '-' => 0, zz => 0, 'z-' => 0, '-z' => 0 },
- 'Cc != "x at example.com" OR Requestor = "y at example.com"' =>
+ 'cc != "x at example.com" OR requestor = "y at example.com"' =>
{ xy => 1, 'x-' => 0, '-y' => 1, '-' => 1, zz => 1, 'z-' => 1, '-z' => 1 },
- 'Cc IS NULL AND Requestor = "y at example.com"' =>
+ 'cc IS NULL AND requestor = "y at example.com"' =>
{ xy => 0, 'x-' => 0, '-y' => 1, '-' => 0, zz => 0, 'z-' => 0, '-z' => 0 },
- 'Cc IS NULL OR Requestor = "y at example.com"' =>
+ 'cc IS NULL OR requestor = "y at example.com"' =>
{ xy => 1, 'x-' => 0, '-y' => 1, '-' => 1, zz => 0, 'z-' => 0, '-z' => 1 },
- 'Cc IS NOT NULL AND Requestor = "y at example.com"' =>
+ 'cc IS NOT NULL AND requestor = "y at example.com"' =>
{ xy => 1, 'x-' => 0, '-y' => 0, '-' => 0, zz => 0, 'z-' => 0, '-z' => 0 },
- 'Cc IS NOT NULL OR Requestor = "y at example.com"' =>
+ 'cc IS NOT NULL OR requestor = "y at example.com"' =>
{ xy => 1, 'x-' => 1, '-y' => 1, '-' => 0, zz => 1, 'z-' => 1, '-z' => 0 },
);
@tickets = add_tix_from_data();
More information about the Rt-commit
mailing list