[Rt-commit] r6862 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2:
lib/t/regression
ruz at bestpractical.com
ruz at bestpractical.com
Fri Jan 26 14:30:45 EST 2007
Author: ruz
Date: Fri Jan 26 14:30:45 2007
New Revision: 6862
Modified:
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/ (props changed)
rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/t/regression/22search_tix_by_watcher.t
Log:
r4442 at cubic-pc (orig r6813): ruz | 2007-01-26 18:35:53 +0300
* add test that fails due to bug in searches by watcher
Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/t/regression/22search_tix_by_watcher.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/t/regression/22search_tix_by_watcher.t (original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/lib/t/regression/22search_tix_by_watcher.t Fri Jan 26 14:30:45 2007
@@ -212,4 +212,21 @@
is($tix->Count, 2, "found ticket(s)");
}
+
+ at data = ( { Subject => '4', Requestor => [ 'charly at example.com', 'bravo at example.com' ] } );
+add_tix_from_data();
+
+diag "Requestor = 'x' AND Requestor = 'y'" if $ENV{'TEST_VERBOSE'};
+{
+ my $tix = RT::Tickets->new($RT::SystemUser);
+ $tix->FromSQL("Queue = '$queue' AND
+ (Requestor = 'bravo\@example.com' AND Requestor = 'charly\@example.com')");
+ is($tix->Count, 1, "found ticket(s)");
+ is_deeply( [sort $tix->First->RequestorAddresses],
+ ['bravo at example.com', 'charly at example.com'],
+ "requestor addresses are correct"
+ );
+}
+
+
exit(0)
More information about the Rt-commit
mailing list