Cleanup in Post tests. Set skipNotification to prevent emails from being queued during the tests.

This commit is contained in:
Colin Kuskie 2009-05-20 03:29:17 +00:00
parent 1ad192fe57
commit 558fba2f6a
2 changed files with 22 additions and 19 deletions

View file

@ -72,25 +72,25 @@ $post = WebGUI::Asset->newByDynamicClass( $session, $post->getId );
#----------------------------------------------------------------------------
# Tests
plan tests => 0;
plan tests => 12;
#----------------------------------------------------------------------------
# Permissions for posts
# View
#$maker->prepare( {
# object => $post,
# method => 'canView',
# pass => [ '1', $user{"2"}, '3', ],
#} )->run;
#
$maker->prepare( {
object => $post,
method => 'canView',
pass => [ '1', $user{"2"}, '3', ],
} )->run;
## Edit
#$maker->prepare( {
# object => $post,
# method => 'canEdit',
# pass => [ $user{"2"}, '3', ],
# fail => [ '1', ],
#} )->run;
#
$maker->prepare( {
object => $post,
method => 'canEdit',
pass => [ $user{"2"}, '3', ],
fail => [ '1', ],
} )->run;
#----------------------------------------------------------------------------
# Cleanup
END {