6 use RT::Test tests => 9;
8 use_ok "RT::URI::fsck_com_article";
9 my $uri = RT::URI::fsck_com_article->new( $RT::SystemUser );
12 isa_ok $uri, 'RT::URI::fsck_com_article';
13 isa_ok $uri, 'RT::URI::base';
14 isa_ok $uri, 'RT::Base';
16 is $uri->LocalURIPrefix, 'fsck.com-article://example.com/article/';
18 my $class = RT::Class->new( $RT::SystemUser );
19 $class->Create( Name => 'URItest - '. $$ );
20 ok $class->id, 'created a class';
21 my $article = RT::Article->new( $RT::SystemUser );
22 my ($id, $msg) = $article->Create(
23 Name => 'Testing URI parsing - '. $$,
24 Summary => 'In which this should load',
29 $uri = RT::URI::fsck_com_article->new( $article->CurrentUser );
30 is $uri->LocalURIPrefix . $article->id, $uri->URIForObject( $article );