projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.2.11, ticket#13852
[freeside.git]
/
rt
/
t
/
mail
/
dashboard-chart-with-utf8.t
diff --git
a/rt/t/mail/dashboard-chart-with-utf8.t
b/rt/t/mail/dashboard-chart-with-utf8.t
index
37f8ce0
..
4fe483a
100644
(file)
--- a/
rt/t/mail/dashboard-chart-with-utf8.t
+++ b/
rt/t/mail/dashboard-chart-with-utf8.t
@@
-1,16
+1,10
@@
use strict;
use warnings;
use strict;
use warnings;
-BEGIN {
- require RT::Test;
+use RT::Test tests => undef;
- if (eval { require GD }) {
- RT::Test->import(tests => 15);
- }
- else {
- RT::Test->import(skip_all => 'GD required.');
- }
-}
+plan skip_all => 'GD required'
+ unless GD->require;
my $root = RT::Test->load_or_create_user( Name => 'root' );
my $root = RT::Test->load_or_create_user( Name => 'root' );
@@
-29,6
+23,7
@@
$m->submit_form(
fields => {
SavedSearchDescription => 'chart foo',
SavedSearchOwner => 'RT::User-' . $root->id,
fields => {
SavedSearchDescription => 'chart foo',
SavedSearchOwner => 'RT::User-' . $root->id,
+ ChartStyle => 'bar',
},
button => 'SavedSearchSave',
);
},
button => 'SavedSearchSave',
);
@@
-88,3
+83,5
@@
if ( my $io = $handle->open('r') ) {
}
is( $mail_image_data, $image, 'image in mail is the same one in web' );
}
is( $mail_image_data, $image, 'image in mail is the same one in web' );
+undef $m;
+done_testing;