switchAdminOn no longer exists
This commit is contained in:
parent
a311c192d5
commit
04eb2a4469
1 changed files with 2 additions and 2 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue