Cleanup in Post tests. Set skipNotification to prevent emails from being queued during the tests.
This commit is contained in:
parent
1ad192fe57
commit
558fba2f6a
2 changed files with 22 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue