RT 4.0.13
[freeside.git] / rt / t / shredder / 03plugin_summary.t
1
2 use strict;
3 use warnings;
4
5 use Test::Deep;
6 use File::Spec;
7 use Test::More tests => 4 + 1; # plus one for warnings check
8 use RT::Test nodb => 1;
9 BEGIN {
10     my $shredder_utils = RT::Test::get_relocatable_file('utils.pl',
11         File::Spec->curdir());
12     require $shredder_utils;
13 }
14
15
16 use_ok('RT::Shredder::Plugin');
17 my $plugin_obj = RT::Shredder::Plugin->new;
18 isa_ok($plugin_obj, 'RT::Shredder::Plugin');
19 my ($status, $msg) = $plugin_obj->LoadByName('Summary');
20 ok($status, 'loaded summary plugin') or diag "error: $msg";
21 isa_ok($plugin_obj, 'RT::Shredder::Plugin::Summary');
22