From 925a5da1af058652ee51774e65357f699d1ce13c Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 3 May 2011 17:43:51 -0500 Subject: [PATCH] switchAdminOn no longer exists --- t/Asset/Template.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/Asset/Template.t b/t/Asset/Template.t index 64dcd9571..a71218ccb 100644 --- a/t/Asset/Template.t +++ b/t/Asset/Template.t @@ -189,7 +189,6 @@ $template3rev->purgeRevision(); ## Check how templates in the trash and clipboard are handled. $session->asset($importNode); -$session->switchAdminOff; my $trashTemplate = $importNode->addChild({ className => "WebGUI::Asset::Template", @@ -204,7 +203,7 @@ is($trashTemplate->process, '', 'process: returns nothing when the template is i $trashTemplate->cut; is($trashTemplate->process, '', '... returns nothing when the template is in the trash, and admin mode is off'); -$session->switchAdminOn; +$session->user({ userId => 3 }); $trashTemplate->trash; is($trashTemplate->process, 'Template in trash', '... returns message when the template is in the trash, and admin mode is on'); @@ -212,7 +211,7 @@ is($trashTemplate->process, 'Template in trash', '... returns message when the t $trashTemplate->cut; is($trashTemplate->process, 'Template in clipboard', '... returns message when the template is in the trash, and admin mode is on'); -$session->switchAdminOff; +$session->user({ userId => 1 }); # Check error logging for bad templates