SwitchAdminOn/Off no longer exists

This commit is contained in:
Doug Bell 2011-05-03 17:36:34 -05:00
parent 1a589a655d
commit a311c192d5

View file

@ -765,7 +765,7 @@ $clippedAsset->cut;
is $trashedAsset->get('state'), 'trash', 'checkView setup: trashed an asset';
is $clippedAsset->get('state'), 'clipboard', '... clipped an asset';
$session->switchAdminOff;
$session->user({ userId => 1 });
$session->response->location('');
$session->response->status(200, 'OK');
@ -778,13 +778,13 @@ $clippedAsset->checkView();
is $session->response->status, 410, '... status set to 410 for cut asset';
is $session->response->location, '', '... no redirect set';
$session->switchAdminOn;
$session->user({ userId => 3 });
$session->response->status(200, 'OK');
is $trashedAsset->checkView(), 'chunked', '... returns "chunked" when admin is on for trashed asset';
is $trashedAsset->checkView(), 'chunked', '... returns "chunked" when admin for trashed asset';
is $session->response->location, $trashedAsset->getUrl('func=manageTrash'), '... trashed asset sets redirect to manageTrash';
$session->response->location('');
is $clippedAsset->checkView(), 'chunked', 'checkView: returns "chunked" when admin is on for cut asset';
is $clippedAsset->checkView(), 'chunked', 'checkView: returns "chunked" when admin for cut asset';
is $session->response->location, $clippedAsset->getUrl('func=manageClipboard'), '... cut asset sets redirect to manageClipboard';
##Return an array of hashrefs. Each hashref describes a test