Ignore:
Timestamp:
11/19/08 19:11:33 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: ported unit tests to new namespace. They all pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/unit/FormDefTests.pm

    r412 r816  
    33package FormDefTests; 
    44 
    5 use base qw(TWikiFnTestCase); 
     5use base qw(FoswikiFnTestCase); 
    66 
    7 use TWiki; 
    8 use TWiki::Form; 
     7use Foswiki; 
     8use Foswiki::Form; 
    99use strict; 
    1010use Assert; 
     
    1919| Date | date | 30 | 
    2020FORM 
    21     my $def = TWiki::Form->new($this->{twiki}, $this->{test_web}, 'TestForm'); 
     21    my $def = Foswiki::Form->new($this->{twiki}, $this->{test_web}, 'TestForm'); 
    2222 
    2323    $this->assert_equals(1, scalar @{$def->getFields()}); 
     
    4242| Checky Egg | checkbox | 1      | 1,2,3,4   | Blip      |              | 
    4343FORM 
    44     my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
     44    my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
    4545 
    4646    $this->assert_equals(2, scalar @{$def->getFields()}); 
     
    8282| Age | 
    8383FORM 
    84     my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
     84    my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
    8585 
    8686    $this->assert_equals(1, scalar @{$def->getFields()}); 
     
    111111| Age | 
    112112FORM 
    113     my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
     113    my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
    114114 
    115115    $this->assert_equals(1, scalar @{$def->getFields()}); 
     
    139139| Beauty | 
    140140FORM 
    141     my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
     141    my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
    142142 
    143143    $this->assert_equals(1, scalar @{$def->getFields()}); 
     
    164164FORM 
    165165 
    166     my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
     166    my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 
    167167 
    168168    my $f = $def->getField('Ecks'); 
     
    186186      $this->{twiki}->{store}->readTopic( 
    187187          undef, $this->{test_web}, 'SplodgeOne'); 
    188     my $form = new TWiki::Form( 
     188    my $form = new Foswiki::Form( 
    189189        $this->{twiki}, $this->{test_web}, 'NonExistantForm', $meta); 
    190190    my $f = $form->getField('Ecks'); 
Note: See TracChangeset for help on using the changeset viewer.