X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fapi%2Fattribute.t;h=417f015281d588c12aa46c5394b9c9c477b33275;hb=33beebf4cb42eba3e1dd868ad5e0af102de961da;hp=cb2626ad809f5e224598c47540626d091330aa2b;hpb=7ac86daf67b0a95153b736d5811f9050363f6553;p=freeside.git diff --git a/rt/t/api/attribute.t b/rt/t/api/attribute.t index cb2626ad8..417f01528 100644 --- a/rt/t/api/attribute.t +++ b/rt/t/api/attribute.t @@ -2,15 +2,15 @@ use strict; use warnings; use RT; -use RT::Test tests => 7; +use RT::Test nodata => 1, tests => 7; { -my $user = $RT::SystemUser; +my $user = RT->SystemUser; my ($id, $msg) = $user->AddAttribute(Name => 'SavedSearch', Content => { Query => 'Foo'} ); ok ($id, $msg); -my $attr = RT::Attribute->new($RT::SystemUser); +my $attr = RT::Attribute->new(RT->SystemUser); $attr->Load($id); is($attr->Name , 'SavedSearch'); $attr->SetSubValues( Format => 'baz'); @@ -28,15 +28,14 @@ is ($format, undef); $attr->SetSubValues(Format => 'This is a format'); -my $attr2 = RT::Attribute->new($RT::SystemUser); +my $attr2 = RT::Attribute->new(RT->SystemUser); $attr2->Load($id); is ($attr2->SubValue('Format'), 'This is a format'); $attr2->Delete; -my $attr3 = RT::Attribute->new($RT::SystemUser); +my $attr3 = RT::Attribute->new(RT->SystemUser); ($id) = $attr3->Load($id); is ($id, 0); } -1;