diff options
author | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
commit | b4b0c7e72d7eaee2fbfc7022022c9698323203dd (patch) | |
tree | ba4cd21399e412c32fe3737eaa8478e3271509f9 /rt/t/web/ticket_update_without_content.t | |
parent | 2dfda73eeb3eae2d4f894099754794ef07d060dd (diff) |
import rt 3.8.7
Diffstat (limited to 'rt/t/web/ticket_update_without_content.t')
-rw-r--r-- | rt/t/web/ticket_update_without_content.t | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/rt/t/web/ticket_update_without_content.t b/rt/t/web/ticket_update_without_content.t new file mode 100644 index 000000000..595cb74e9 --- /dev/null +++ b/rt/t/web/ticket_update_without_content.t @@ -0,0 +1,52 @@ +#!/usr/bin/env perl +use strict; +use warnings; + +use RT::Test tests => 10; +my ( $url, $m ) = RT::Test->started_ok; + +# merged tickets still show up in search +my $ticket = RT::Ticket->new($RT::SystemUser); +my ( $ret, $msg ) = $ticket->Create( + Subject => 'base ticket' . $$, + Queue => 'general', + Owner => 'root', + Requestor => 'root@localhost', + MIMEObj => MIME::Entity->build( + From => 'root@localhost', + To => 'rt@localhost', + Subject => 'base ticket' . $$, + Data => "", + ), +); +ok( $ret, "ticket created: $msg" ); + +ok( $m->login, 'logged in' ); + +$m->get_ok( $url . "/Ticket/ModifyAll.html?id=" . $ticket->id ); + +$m->submit_form( + form_number => 3, + fields => { Priority => '1', } +); + +$m->content_like(qr/priority changed/i); +$m->content_unlike(qr/message recorded/i); + +my $root = RT::User->new( $RT::SystemUser ); +$root->Load('root'); +( $ret, $msg ) = $root->SetSignature(<<EOF); +best wishes +foo +EOF + +ok( $ret, $msg ); + +$m->get_ok( $url . "/Ticket/ModifyAll.html?id=" . $ticket->id ); + +$m->submit_form( + form_number => 3, + fields => { Priority => '2', } +); +$m->content_like(qr/priority changed/i); +$m->content_unlike(qr/message recorded/i); |