[Rt-commit] rt branch, 4.2/expose-cf-to-cfvs, updated. rt-4.2.9-47-g4a1d20e

Alex Vandiver alexmv at bestpractical.com
Fri Dec 19 16:13:45 EST 2014


The branch, 4.2/expose-cf-to-cfvs has been updated
       via  4a1d20e9bf74ca90b0a649f16f51a5ddfb3419fc (commit)
      from  7e382cb9faf0b7954c4bb7d62ca01832d00eeabc (commit)

Summary of changes:
 t/customfields/external.t | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 4a1d20e9bf74ca90b0a649f16f51a5ddfb3419fc
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Dec 19 16:13:35 2014 -0500

    Add tests for the new ->CustomFieldObject and ->CustomFieldObj methods

diff --git a/t/customfields/external.t b/t/customfields/external.t
index 7354916..4b84144 100644
--- a/t/customfields/external.t
+++ b/t/customfields/external.t
@@ -3,7 +3,7 @@ use warnings;
 use strict;
 
 use RT;
-use RT::Test nodata => 1, tests => 13;
+use RT::Test nodata => 1, tests => undef;
 
 sub new (*) {
     my $class = shift;
@@ -51,6 +51,10 @@ isa_ok( $cf, 'RT::CustomField' );
     }
     ok( !$failure, "all values have name" );
     is( $values->Count, $count, "count is correct" );
+    is( $values->CustomFieldObject->id, $cf->id, "Values stored the CF id" );
+    is( $values->CustomFieldObject, $cf, "Values stored the identical CF object" );
+    is( $values->First->CustomFieldObj->id, $cf->id, "A value stored the CF id" );
+    is( $values->First->CustomFieldObj, $cf, "A value stored the identical CF object" );
 }
 
 {
@@ -59,3 +63,5 @@ isa_ok( $cf, 'RT::CustomField' );
     ($ret, $msg) = $cf->SetValuesClass('RT::CustomFieldValues::Groups');
     ok $ret, 'Reverting this CF as external source values based' or diag "error: $msg";
 }
+
+done_testing;

-----------------------------------------------------------------------


More information about the rt-commit mailing list