test for new, with no assetId. Apparently, you cannot return undef from BUILDARGS.

This commit is contained in:
Colin Kuskie 2010-01-20 21:56:15 -08:00
parent 28fae98edd
commit 0a6e0b1160

View file

@ -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';
}