From 0a6e0b1160555928d0b45adc9feb1f873ca3b197 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 20 Jan 2010 21:56:15 -0800 Subject: [PATCH] test for new, with no assetId. Apparently, you cannot return undef from BUILDARGS. --- t/Asset.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/Asset.t b/t/Asset.t index 94941d91d..e7c315026 100644 --- a/t/Asset.t +++ b/t/Asset.t @@ -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'; +}