[Rt-commit] r10335 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Sun Jan 13 17:56:10 EST 2008
Author: ruz
Date: Sun Jan 13 17:56:09 2008
New Revision: 10335
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/t/api/queue.t
rt/branches/3.7-EXPERIMENTAL/t/api/ticket.t
Log:
r10159 at cubic-pc: cubic | 2008-01-09 18:39:57 +0300
* fix calls to IsWatcher in tests, the method has 'PrincipalId'
argument instead of 'Principal'
Modified: rt/branches/3.7-EXPERIMENTAL/t/api/queue.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/t/api/queue.t (original)
+++ rt/branches/3.7-EXPERIMENTAL/t/api/queue.t Sun Jan 13 17:56:09 2008
@@ -72,7 +72,7 @@
ok($bob->Id, "Found the bob rt user");
ok ($Queue->IsWatcher(Type => 'Cc', PrincipalId => $bob->PrincipalId), "The Queue actually has bob at fsck.com as a requestor");;
ok (($add_id, $add_msg) = $Queue->DeleteWatcher(Type =>'Cc', Email => 'bob at fsck.com'), "Added bob at fsck.com as a requestor");
-ok (!$Queue->IsWatcher(Type => 'Cc', Principal => $bob->PrincipalId), "The Queue no longer has bob at fsck.com as a requestor");;
+ok (!$Queue->IsWatcher(Type => 'Cc', PrincipalId => $bob->PrincipalId), "The Queue no longer has bob at fsck.com as a requestor");;
$group = RT::Group->new($RT::SystemUser);
Modified: rt/branches/3.7-EXPERIMENTAL/t/api/ticket.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/t/api/ticket.t (original)
+++ rt/branches/3.7-EXPERIMENTAL/t/api/ticket.t Sun Jan 13 17:56:09 2008
@@ -135,7 +135,7 @@
ok($bob->Id, "Found the bob rt user");
ok ($ticket->IsWatcher(Type => 'Requestor', PrincipalId => $bob->PrincipalId), "The ticket actually has bob at fsck.com as a requestor");;
ok ( ($add_id, $add_msg) = $ticket->DeleteWatcher(Type =>'Requestor', Email => 'bob at fsck.com'), "Added bob at fsck.com as a requestor");
-ok (!$ticket->IsWatcher(Type => 'Requestor', Principal => $bob->PrincipalId), "The ticket no longer has bob at fsck.com as a requestor");;
+ok (!$ticket->IsWatcher(Type => 'Requestor', PrincipalId => $bob->PrincipalId), "The ticket no longer has bob at fsck.com as a requestor");;
$group = RT::Group->new($RT::SystemUser);
More information about the Rt-commit
mailing list