From 04eb2a4469f188f3ba1c55404fbc1c9e3ed95647 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 3 May 2011 17:42:33 -0500 Subject: [PATCH] switchAdminOn no longer exists --- t/Asset/dispatch.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Asset/dispatch.t b/t/Asset/dispatch.t index 0fc8da650..0b5c77f74 100644 --- a/t/Asset/dispatch.t +++ b/t/Asset/dispatch.t @@ -121,12 +121,12 @@ isnt( $output, "www_view", "?func= dispatch cancelled because of unhandled fragm $td->cut(); $output = $td->dispatch(); is $output, undef, 'dispatch returns undef when trying to access an asset that is not published, and admin is not on'; -$session->switchAdminOn; +$session->user({ userId => 3 }); $output = $td->dispatch(); is $output, 'www_view', 'when admin is on, the asset can be accessed'; $td->publish(); -$session->switchAdminOff; +$session->user({ userId => 1 }); $output = $td->dispatch(); is $output, 'www_view', 'asset state restored for next tests';