projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.22
[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
6d07b96
..
37f8ce0
100644
(file)
--- a/
rt/t/mail/dashboard-chart-with-utf8.t
+++ b/
rt/t/mail/dashboard-chart-with-utf8.t
@@
-1,8
+1,16
@@
use strict;
use warnings;
use strict;
use warnings;
-use RT::Test tests => 15;
-use utf8;
+BEGIN {
+ require RT::Test;
+
+ if (eval { require GD }) {
+ RT::Test->import(tests => 15);
+ }
+ else {
+ RT::Test->import(skip_all => 'GD required.');
+ }
+}
my $root = RT::Test->load_or_create_user( Name => 'root' );
my $root = RT::Test->load_or_create_user( Name => 'root' );
@@
-11,11
+19,11
@@
ok( $m->login, 'logged in' );
my $ticket = RT::Ticket->new( $RT::SystemUser );
$ticket->Create(
Queue => 'General',
my $ticket = RT::Ticket->new( $RT::SystemUser );
$ticket->Create(
Queue => 'General',
- Subject =>
'test äöü'
,
+ Subject =>
Encode::decode("UTF-8",'test äöü')
,
);
ok( $ticket->id, 'created ticket' );
);
ok( $ticket->id, 'created ticket' );
-$m->get_ok(
q{/Search/Chart.html?Query=Subject LIKE 'test äöü'}
);
+$m->get_ok(
Encode::decode("UTF-8", q{/Search/Chart.html?Query=Subject LIKE 'test äöü'})
);
$m->submit_form(
form_name => 'SaveSearch',
fields => {
$m->submit_form(
form_name => 'SaveSearch',
fields => {
@@
-48,7
+56,7
@@
$m->field( 'Hour' => '06:00' );
$m->click_button( name => 'Save' );
$m->content_contains('Subscribed to dashboard dashboard foo');
$m->click_button( name => 'Save' );
$m->content_contains('Subscribed to dashboard dashboard foo');
-my $c = $m->get(
q{/Search/Chart?Query=Subject LIKE 'test äöü'}
);
+my $c = $m->get(
Encode::decode("UTF-8",q{/Search/Chart?Query=Subject LIKE 'test äöü'})
);
my $image = $c->content;
RT::Test->run_and_capture(
command => $RT::SbinPath . '/rt-email-dashboards', all => 1
my $image = $c->content;
RT::Test->run_and_capture(
command => $RT::SbinPath . '/rt-email-dashboards', all => 1