[Rt-commit] rt branch, 4.4/serialize-json-initialdata, updated. rt-4.4.1-355-ge0725da
Shawn Moore
shawn at bestpractical.com
Mon Mar 20 17:01:52 EDT 2017
The branch, 4.4/serialize-json-initialdata has been updated
via e0725da3922b124cbcc9994eec4ff11c465d907d (commit)
from c6e016974d8df964d3815271f4ea605e3b63add8 (commit)
Summary of changes:
t/api/initialdata-roundtrip.t | 8 ++++++++
1 file changed, 8 insertions(+)
- Log -----------------------------------------------------------------
commit e0725da3922b124cbcc9994eec4ff11c465d907d
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Mon Mar 20 21:01:46 2017 +0000
Check CF addedness too
diff --git a/t/api/initialdata-roundtrip.t b/t/api/initialdata-roundtrip.t
index 83e387c..9903a7f 100644
--- a/t/api/initialdata-roundtrip.t
+++ b/t/api/initialdata-roundtrip.t
@@ -71,6 +71,14 @@ my @tests = (
is($cf->Type, 'Select', 'Type');
is($cf->MaxValues, 1, 'MaxValues');
is($cf->LookupType, RT::Queue->CustomFieldLookupType, 'LookupType');
+
+ ok($cf->IsAdded($bugs->Id), 'CF is on Bugs queue');
+ ok($cf->IsAdded($features->Id), 'CF is on Features queue');
+ ok(!$cf->IsAdded(0), 'CF is not global');
+
+ my $general = RT::Queue->new(RT->SystemUser);
+ $general->Load('General');
+ ok(!$cf->IsAdded($general->Id), 'CF is not on General queue');
},
},
);
-----------------------------------------------------------------------
More information about the rt-commit
mailing list