From 225590fa33f3f3b5d20f2d8d3cb2df059c6402c7 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 1 Dec 2007 05:24:30 +0000 Subject: [PATCH] Add tests for the tempspace node. --- t/Asset/Asset.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/t/Asset/Asset.t b/t/Asset/Asset.t index 5e2c006b8..558851fe3 100644 --- a/t/Asset/Asset.t +++ b/t/Asset/Asset.t @@ -17,7 +17,7 @@ use WebGUI::Session; use WebGUI::Asset; use WebGUI::Asset::Wobject::Navigation; -use Test::More tests => 28; # increment this value for each test you create +use Test::More tests => 31; # increment this value for each test you create use Test::MockObject; my $session = WebGUI::Test->session; @@ -97,6 +97,13 @@ isa_ok($importNode, 'WebGUI::Asset::Wobject::Folder'); is($importNode->getId, 'PBasset000000000000002', 'Import Node Asset ID check'); is($importNode->getParent->getId, $rootAsset->getId, 'Import Nodes parent is Root Asset'); +# tempspace Constructor + +my $tempNode = WebGUI::Asset->getTempspace($session); +isa_ok($tempNode, 'WebGUI::Asset::Wobject::Folder'); +is($tempNode->getId, 'tempspace0000000000000', 'Tempspace Asset ID check'); +is($tempNode->getParent->getId, $rootAsset->getId, 'Tempspace parent is Root Asset'); + ################################################################ # # urlExists