test for new, with no assetId. Apparently, you cannot return undef from BUILDARGS.
This commit is contained in:
parent
28fae98edd
commit
0a6e0b1160
1 changed files with 6 additions and 0 deletions
|
|
@ -268,3 +268,9 @@ my $session = WebGUI::Test->session;
|
|||
my $asset = WebGUI::Asset->getDefault($session);
|
||||
$asset->isa('WebGUI::Asset::Wobject::Layout');
|
||||
}
|
||||
|
||||
{
|
||||
note "calling new with no assetId";
|
||||
my $asset = WebGUI::Asset->new($session, '');
|
||||
is $asset, undef, 'new returns undef without an assetId';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue