switchAdminOn no longer exists

This commit is contained in:
Doug Bell 2011-05-03 17:42:33 -05:00
parent a311c192d5
commit 04eb2a4469

View file

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