[Rt-commit] r10279 - rt/branches/3.7-EXPERIMENTAL/t/api

clkao at bestpractical.com clkao at bestpractical.com
Thu Jan 10 04:00:12 EST 2008


Author: clkao
Date: Thu Jan 10 04:00:11 2008
New Revision: 10279

Modified:
   rt/branches/3.7-EXPERIMENTAL/t/api/customfield.t

Log:
make api/customfield quiet.

Modified: rt/branches/3.7-EXPERIMENTAL/t/api/customfield.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/t/api/customfield.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL/t/api/customfield.t	Thu Jan 10 04:00:11 2008
@@ -2,9 +2,10 @@
 use strict;
 use warnings;
 use Test::More; 
-plan tests => 26;
+plan tests => 29;
 use RT;
 use RT::Test;
+use Test::Warn;
 
 
 {
@@ -56,9 +57,18 @@
 {
 
 ok(my $cf = RT::CustomField->new($RT::SystemUser));
+
+warning_like {
 ok($cf->ValidateType('SelectSingle'));
+} qr/deprecated/;
+
+warning_like {
 ok($cf->ValidateType('SelectMultiple'));
+} qr/deprecated/;
+
+warning_like {
 ok(!$cf->ValidateType('SelectFooMultiple'));
+} qr/deprecated/;
 
 
 }


More information about the Rt-commit mailing list