5 use RT::Test tests => 7;
10 my $user = $RT::SystemUser;
11 my ($id, $msg) = $user->AddAttribute(Name => 'SavedSearch', Content => { Query => 'Foo'} );
13 my $attr = RT::Attribute->new($RT::SystemUser);
15 is($attr->Name , 'SavedSearch');
16 $attr->SetSubValues( Format => 'baz');
18 my $format = $attr->SubValue('Format');
21 $attr->SetSubValues( Format => 'bar');
22 $format = $attr->SubValue('Format');
25 $attr->DeleteAllSubValues();
26 $format = $attr->SubValue('Format');
29 $attr->SetSubValues(Format => 'This is a format');
31 my $attr2 = RT::Attribute->new($RT::SystemUser);
33 is ($attr2->SubValue('Format'), 'This is a format');
35 my $attr3 = RT::Attribute->new($RT::SystemUser);
36 ($id) = $attr3->Load($id);