SwitchAdminOn/Off no longer exists
This commit is contained in:
parent
1a589a655d
commit
a311c192d5
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue