[Rt-commit] r7154 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: lib/t/regression t/api t/ticket

clkao at bestpractical.com clkao at bestpractical.com
Mon Mar 5 11:24:11 EST 2007


Author: clkao
Date: Mon Mar  5 11:24:11 2007
New Revision: 7154

Added:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/09record_cf_api.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_combo_casacade.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_combo_cascade.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_pattern.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_pattern.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_single_values.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_single_values_are_single.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_sort.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/23cfsort.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_transaction.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/16-transaction_cf_tests.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/rtname.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/19-rtname.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search.t
      - copied unchanged from r7146, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/12-search.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search_by_txn.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_txn.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search_by_watcher.t
      - copied, changed from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_watcher.t
Removed:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/09record_cf_api.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/12-search.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_combo_cascade.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_pattern.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_single_values_are_single.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/16-transaction_cf_tests.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/19-rtname.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_txn.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_watcher.t
   rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/23cfsort.t

Log:
move more tests to t/

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/09record_cf_api.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/09record_cf_api.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf.t	Mon Mar  5 11:24:11 2007
@@ -4,9 +4,7 @@
 use warnings FATAL => 'all';
 use Test::More tests => 133;
 
-use RT;
-RT::LoadConfig();
-RT::Init();
+use RT::Test;
 
 # Before we get going, ditch all object_cfs; this will remove 
 # all custom fields systemwide;

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_combo_casacade.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_combo_cascade.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_combo_cascade.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_combo_casacade.t	Mon Mar  5 11:24:11 2007
@@ -3,9 +3,7 @@
 use strict;
 use Test::More tests => 11;
 
-use RT;
-RT::LoadConfig();
-RT::Init();
+use RT::Test;
 
 sub fails { ok(!$_[0], "This should fail: $_[1]") }
 sub works { ok($_[0], $_[1] || 'This works') }

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_pattern.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_pattern.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_pattern.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_pattern.t	Mon Mar  5 11:24:11 2007
@@ -4,8 +4,8 @@
 use Test::More tests => 17;
 
 use RT;
-RT::LoadConfig();
-RT::Init();
+use RT::Test;
+
 
 sub fails { ok(!$_[0], "This should fail: $_[1]") }
 sub works { ok($_[0], $_[1] || 'This works') }

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_single_values.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_single_values_are_single.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/15cf_single_values_are_single.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_single_values.t	Mon Mar  5 11:24:11 2007
@@ -4,8 +4,8 @@
 use Test::More tests => 8;
 
 use RT;
-RT::LoadConfig();
-RT::Init();
+use RT::Test;
+
 
 
 my $q = RT::Queue->new($RT::SystemUser);

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_sort.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/23cfsort.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/23cfsort.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_sort.t	Mon Mar  5 11:24:11 2007
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 use Test::More qw/no_plan/;
-use RT;
+#use RT::Test;
 RT::LoadConfig();
 RT::Init();
 

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_transaction.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/16-transaction_cf_tests.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/16-transaction_cf_tests.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/api/cf_transaction.t	Mon Mar  5 11:24:11 2007
@@ -7,8 +7,8 @@
 
 use_ok('RT');
 use_ok('RT::Transactions');
-RT::LoadConfig();
-RT::Init();
+use RT::Test;
+
 
 my $q = RT::Queue->new($RT::SystemUser);
 my ($id,$msg) = $q->Create( Name => 'TxnCFTest'.$$);

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/rtname.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/19-rtname.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/19-rtname.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/rtname.t	Mon Mar  5 11:24:11 2007
@@ -1,12 +1,9 @@
 #!/usr/bin/perl
 use strict;
 use warnings;
-use Test::More qw/no_plan/;
+use Test::More tests => 9;
 
-use_ok("RT");
-
-RT::LoadConfig();
-RT::Init();
+use RT::Test 'nodata';
 
 use RT::Interface::Email;
 

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search_by_txn.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_txn.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_txn.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search_by_txn.t	Mon Mar  5 11:24:11 2007
@@ -7,9 +7,7 @@
 
 BEGIN{ $ENV{'TZ'} = 'GMT'};
 
-use RT;
-RT::LoadConfig();
-RT::Init();
+use RT::Test;
 
 my $SUBJECT = "Search test - ".$$;
 

Copied: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search_by_watcher.t (from r7141, /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_watcher.t)
==============================================================================
--- /rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/t/regression/22search_tix_by_watcher.t	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/ticket/search_by_watcher.t	Mon Mar  5 11:24:11 2007
@@ -3,10 +3,8 @@
 use strict;
 use warnings;
 
-use Test::More tests => 79;
-use_ok('RT');
-RT::LoadConfig();
-RT::Init();
+use Test::More tests => 78;
+use RT::Test;
 use RT::Ticket;
 
 my $q = RT::Queue->new( $RT::SystemUser );


More information about the Rt-commit mailing list