diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-06-30 01:03:13 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-06-30 01:03:13 -0700 |
commit | f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7 (patch) | |
tree | e5e9a077260613e6117d4697dd2985abd9b03d34 /rt/t/api/attribute.t | |
parent | cf7cd8efc7095aadbdfb0cd8e7ea0e2e8b9e9085 (diff) | |
parent | cd3eb95ed1f3dc3e04cfc2b3b405f75b3ab086da (diff) |
merging RT 4.0.6
Diffstat (limited to 'rt/t/api/attribute.t')
-rw-r--r-- | rt/t/api/attribute.t | 11 |
1 files changed, 5 insertions, 6 deletions
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; |