[Rt-commit] r18072 - in rt/3.999/branches/merge_to_3.8.2: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 29 23:20:39 EST 2009
Author: sunnavy
Date: Thu Jan 29 23:20:38 2009
New Revision: 18072
Modified:
rt/3.999/branches/merge_to_3.8.2/ (props changed)
rt/3.999/branches/merge_to_3.8.2/t/savedsearch.t
Log:
r19331 at sunnavys-mb: sunnavy | 2009-01-30 09:31:07 +0800
merged t/savedsearch.t
Modified: rt/3.999/branches/merge_to_3.8.2/t/savedsearch.t
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/t/savedsearch.t (original)
+++ rt/3.999/branches/merge_to_3.8.2/t/savedsearch.t Thu Jan 29 23:20:38 2009
@@ -1,6 +1,6 @@
use strict;
use warnings;
-use RT::Test; use Test::More tests => 26;
+use RT::Test; use Test::More tests => 27;
use RT::Model::User;
use RT::Model::Group;
use RT::Model::Ticket;
@@ -10,6 +10,8 @@
use_ok('RT::SavedSearches');
+use Test::Warn;
+
# Set up some infrastructure. These calls are tested elsewhere.
my $searchuser = RT::Model::User->new(current_user => RT->system_user);
@@ -144,6 +146,11 @@
is($tickets->count, 1, "Found a ticket");
# This should fail -- no permission.
+
+warning_like {
+ $loadedsearch4->load($othersearch->privacy, $othersearch->id);
+} qr/Could not load object RT::Model::Group-\d+ when loading search/;
+
my $loadedsearch4 = RT::SavedSearch->new(current_user => $curruser);
$loadedsearch4->load($othersearch->privacy, $othersearch->id);
isnt($loadedsearch4->id, $othersearch->id, "Did not load othersearch");
More information about the Rt-commit
mailing list