X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fcustomfields%2Fexternal.t;h=73549166a82c5528bf64af4596c427a4e9f6dcda;hb=679854b8bbc65d112071111bbd7f34a6a481fb30;hp=0abf6eca111e9cba86d243bef8a83b4bda776fbd;hpb=9b328d940af56b9924a342192ebb0790478fa705;p=freeside.git diff --git a/rt/t/customfields/external.t b/rt/t/customfields/external.t index 0abf6eca1..73549166a 100644 --- a/rt/t/customfields/external.t +++ b/rt/t/customfields/external.t @@ -1,10 +1,9 @@ -#!/usr/bin/perl use warnings; use strict; use RT; -use RT::Test nodata => 1, tests => 11; +use RT::Test nodata => 1, tests => 13; sub new (*) { my $class = shift; @@ -54,3 +53,9 @@ isa_ok( $cf, 'RT::CustomField' ); is( $values->Count, $count, "count is correct" ); } +{ + my ($ret, $msg) = $cf->SetValuesClass('RT::CustomFieldValues'); + ok $ret, 'Reverting this CF as internal source values based' or diag "error: $msg"; + ($ret, $msg) = $cf->SetValuesClass('RT::CustomFieldValues::Groups'); + ok $ret, 'Reverting this CF as external source values based' or diag "error: $msg"; +}