Show
Ignore:
Timestamp:
06/12/08 05:12:23 (18 months ago)
Author:
bchoate
Message:

Test suite cleanup. Use MT::Test to force t/ based configuration file for all tests. Fixed several tests that had incorrect expected values.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/t/21-callbacks.t

    r2069 r2562  
    66use Test::More tests => 5; 
    77use CGI; 
    8 use DB_File; 
    98 
    109use lib 'extlib'; 
     
    1312 
    1413use MT; 
     14use MT::Test; 
    1515use MT::Plugin; 
    1616use MT::Entry; 
     
    7777is($entry2->text, $TEST_TEXT, 'on-disk obj altered'); 
    7878 
    79 =pod 
    80  
    81 # TBD: generalize this 
    82 my $driver = MT::ObjectDriver->new('DBI::SQLite'); 
    83  
    84 #my %entries; 
    85 #tie %entries, "DB_File", $mt->{cfg}->DataSource . "/entry.db", 
    86 #                         O_RDWR, 0400, $DB_BTREE 
    87 #    || die $!; 
    88 #my $rec = $entries{$id}; 
    89 #$rec = $driver->{serializer}->unserialize($rec); 
    90 #is($$rec->{text}, rot13($TEST_TEXT), 'text rotated'); 
    91  
    92 #is($entry2->text_more, $TEST_TEXT_MORE, '$entry2->text_more()'); 
    93 #is($$rec->{text_more}, $TEST_TEXT_MORE, '$$rec->{text_more}'); 
    94  
    95 =cut 
    96