[Rt-commit] rt branch, 4.0/fix-cf-valuesclass-updates, updated. rt-4.0.2-40-gb88b3cc
Emannuel Lacour
elacour at bestpractical.com
Fri Sep 2 11:02:08 EDT 2011
The branch, 4.0/fix-cf-valuesclass-updates has been updated
via b88b3cc313bb92b3adc53f33c7080b0ba0d6c9b5 (commit)
from f5781388c9791751a4b5cd822aae6ebdcf9c1cfa (commit)
Summary of changes:
t/customfields/external.t | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit b88b3cc313bb92b3adc53f33c7080b0ba0d6c9b5
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date: Fri Sep 2 17:00:25 2011 +0200
Add tests vor RT::CustomField->SetValuesClass
diff --git a/t/customfields/external.t b/t/customfields/external.t
index 0abf6ec..c6044bc 100644
--- a/t/customfields/external.t
+++ b/t/customfields/external.t
@@ -4,7 +4,7 @@ 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 +54,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";
+}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list