Update test since names are now required.
This commit is contained in:
parent
5e7c980442
commit
d9aaa70706
1 changed files with 2 additions and 3 deletions
|
|
@ -26,15 +26,14 @@ my $session = WebGUI::Test->session;
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Tests
|
# Tests
|
||||||
|
|
||||||
plan tests => 9; # Increment this number for each test you create
|
plan tests => 8; # Increment this number for each test you create
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Creation, accessors and mutators
|
# Creation, accessors and mutators
|
||||||
use_ok( 'WebGUI::FormBuilder::Tab' );
|
use_ok( 'WebGUI::FormBuilder::Tab' );
|
||||||
my $tab = WebGUI::FormBuilder::Tab->new( $session );
|
my $tab = WebGUI::FormBuilder::Tab->new( $session, name => 'no name', );
|
||||||
isa_ok( $tab, 'WebGUI::FormBuilder::Tab' );
|
isa_ok( $tab, 'WebGUI::FormBuilder::Tab' );
|
||||||
|
|
||||||
ok( !$tab->name, 'no default' );
|
|
||||||
ok( !$tab->label, 'no default' );
|
ok( !$tab->label, 'no default' );
|
||||||
is( $tab->session, $session );
|
is( $tab->session, $session );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue