Changeset 816 for trunk/UnitTestContrib/test/unit/FormDefTests.pm
- Timestamp:
- 11/19/08 19:11:33 (4 years ago)
- File:
-
- 1 edited
-
trunk/UnitTestContrib/test/unit/FormDefTests.pm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UnitTestContrib/test/unit/FormDefTests.pm
r412 r816 3 3 package FormDefTests; 4 4 5 use base qw( TWikiFnTestCase);5 use base qw(FoswikiFnTestCase); 6 6 7 use TWiki;8 use TWiki::Form;7 use Foswiki; 8 use Foswiki::Form; 9 9 use strict; 10 10 use Assert; … … 19 19 | Date | date | 30 | 20 20 FORM 21 my $def = TWiki::Form->new($this->{twiki}, $this->{test_web}, 'TestForm');21 my $def = Foswiki::Form->new($this->{twiki}, $this->{test_web}, 'TestForm'); 22 22 23 23 $this->assert_equals(1, scalar @{$def->getFields()}); … … 42 42 | Checky Egg | checkbox | 1 | 1,2,3,4 | Blip | | 43 43 FORM 44 my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm');44 my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 45 45 46 46 $this->assert_equals(2, scalar @{$def->getFields()}); … … 82 82 | Age | 83 83 FORM 84 my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm');84 my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 85 85 86 86 $this->assert_equals(1, scalar @{$def->getFields()}); … … 111 111 | Age | 112 112 FORM 113 my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm');113 my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 114 114 115 115 $this->assert_equals(1, scalar @{$def->getFields()}); … … 139 139 | Beauty | 140 140 FORM 141 my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm');141 my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 142 142 143 143 $this->assert_equals(1, scalar @{$def->getFields()}); … … 164 164 FORM 165 165 166 my $def = new TWiki::Form($this->{twiki}, $this->{test_web}, 'TestForm');166 my $def = new Foswiki::Form($this->{twiki}, $this->{test_web}, 'TestForm'); 167 167 168 168 my $f = $def->getField('Ecks'); … … 186 186 $this->{twiki}->{store}->readTopic( 187 187 undef, $this->{test_web}, 'SplodgeOne'); 188 my $form = new TWiki::Form(188 my $form = new Foswiki::Form( 189 189 $this->{twiki}, $this->{test_web}, 'NonExistantForm', $meta); 190 190 my $f = $form->getField('Ecks');
Note: See TracChangeset
for help on using the changeset viewer.
