diff --git a/t/Asset/Asset.t b/t/Asset/Asset.t index 99d17a55f..2433a4312 100644 --- a/t/Asset/Asset.t +++ b/t/Asset/Asset.t @@ -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