diff options
author | cvs2git <cvs2git> | 2010-05-18 18:50:00 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-05-18 18:50:00 +0000 |
commit | 512f2d1e0ecd86da0e99d99911933a842957186d (patch) | |
tree | 0f818dde9e18dc88290b0c0ff4beb89251728ba7 /rt/lib/t/regression/15cf_combo_cascade.t | |
parent | e70abd21bab68b23488f7ef1ee2e693a3b365691 (diff) |
This commit was manufactured by cvs2svn to create tag 'RT_3_8_8'.RT_3_8_8
Diffstat (limited to 'rt/lib/t/regression/15cf_combo_cascade.t')
-rw-r--r-- | rt/lib/t/regression/15cf_combo_cascade.t | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/rt/lib/t/regression/15cf_combo_cascade.t b/rt/lib/t/regression/15cf_combo_cascade.t deleted file mode 100644 index df663a1bd..000000000 --- a/rt/lib/t/regression/15cf_combo_cascade.t +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/perl -use warnings; -use strict; -use Test::More tests => 11; - -use RT; -RT::LoadConfig(); -RT::Init(); - -sub fails { ok(!$_[0], "This should fail: $_[1]") } -sub works { ok($_[0], $_[1] || 'This works') } - -sub new (*) { - my $class = shift; - return $class->new($RT::SystemUser); -} - -my $q = new(RT::Queue); -works($q->Create(Name => "CF-Pattern-".$$)); - -my $cf = new(RT::CustomField); -my @cf_args = (Name => $q->Name, Type => 'Combobox', Queue => $q->id); - -works($cf->Create(@cf_args)); - -# Set some CFVs with Category markers - -my $t = new(RT::Ticket); -my ($id,undef,$msg) = $t->Create(Queue => $q->id, Subject => 'CF Test'); -works($id,$msg); - -sub add_works { - works( - $cf->AddValue(Name => $_[0], Description => $_[0], Category => $_[1]) - ); -}; - -add_works('value1', '1. Category A'); -add_works('value2'); -add_works('value3', '1.1. A-sub one'); -add_works('value4', '1.2. A-sub two'); -add_works('value5', ''); - -my $cfv = $cf->Values->First; -is($cfv->Category, '1. Category A'); -works($cfv->SetCategory('1. Category AAA')); -is($cfv->Category, '1. Category AAA'); - -1; |