diff options
Diffstat (limited to 't/bmo/comments.t')
-rw-r--r-- | t/bmo/comments.t | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/t/bmo/comments.t b/t/bmo/comments.t index 00002040c..323d1730f 100644 --- a/t/bmo/comments.t +++ b/t/bmo/comments.t @@ -22,51 +22,50 @@ Bugzilla->error_mode(ERROR_MODE_DIE); my $user = Bugzilla::User->check({id => 1}); Bugzilla->set_user($user); -my $bug_1 = Bugzilla::Bug->create( - { - short_desc => 'A test bug', - product => 'Firefox', - component => 'General',, - bug_severity => 'normal', - groups => [], - op_sys => 'Unspecified', - rep_platform => 'Unspecified', - version => 'Trunk', - keywords => [], - cc => [], - comment => 'This is a brand new bug', - assigned_to => Bugzilla->params->{'nobody_user'}, - } -); +my $bug_1 = Bugzilla::Bug->create({ + short_desc => 'A test bug', + product => 'Firefox', + component => 'General', + , + bug_severity => 'normal', + groups => [], + op_sys => 'Unspecified', + rep_platform => 'Unspecified', + version => 'Trunk', + keywords => [], + cc => [], + comment => 'This is a brand new bug', + assigned_to => Bugzilla->params->{'nobody_user'}, +}); ok($bug_1->id, "got a new bug"); -my $urlbase = Bugzilla->localconfig->{urlbase}; +my $urlbase = Bugzilla->localconfig->{urlbase}; my $bug_1_id = $bug_1->id; -my $bug_2 = Bugzilla::Bug->create( - { - short_desc => 'A bug that references another bug', - product => 'Firefox', - component => 'General',, - bug_severity => 'normal', - groups => [], - op_sys => 'Unspecified', - rep_platform => 'Unspecified', - version => 'Trunk', - keywords => [], - cc => [], - comment => "This is related to ${urlbase}show_bug.cgi?id=$bug_1_id", - assigned_to => Bugzilla->params->{'nobody_user'}, - } -); +my $bug_2 = Bugzilla::Bug->create({ + short_desc => 'A bug that references another bug', + product => 'Firefox', + component => 'General', + , + bug_severity => 'normal', + groups => [], + op_sys => 'Unspecified', + rep_platform => 'Unspecified', + version => 'Trunk', + keywords => [], + cc => [], + comment => "This is related to ${urlbase}show_bug.cgi?id=$bug_1_id", + assigned_to => Bugzilla->params->{'nobody_user'}, +}); my $bug_2_id = $bug_2->id; Bugzilla::Template::quoteUrls( - $bug_2->comments->[0]->body, undef, undef, undef, - sub { - my $bug_id = $_[0]; - is($bug_id, $bug_1_id, "found Bug $bug_1_id on Bug $bug_2_id"); - } + $bug_2->comments->[0]->body, + undef, undef, undef, + sub { + my $bug_id = $_[0]; + is($bug_id, $bug_1_id, "found Bug $bug_1_id on Bug $bug_2_id"); + } ); done_testing; |