Update tests for changes to skipNotification.

This commit is contained in:
Colin Kuskie 2009-11-05 16:30:17 -08:00
parent 924686b8eb
commit fc68756975
2 changed files with 2 additions and 1 deletions

View file

@ -481,6 +481,7 @@ Sets a flag so that developers know whether to send notifications out on certain
sub setSkipNotification {
my $self = shift;
$self->session->db->write("update assetData set skipNotification=1 where assetId=? and revisionDate=?", [$self->getId, $self->get("revisionDate")]);
$self->{_properties}->{skipNotification} = 1;
}
#-------------------------------------------------------------------

View file

@ -83,7 +83,7 @@ ok(
#----------------------------------------------------------------------------
# skip notification
ok( !$wiki->get('skipNotification'), 'skipNotification defaults to false' );
$wiki->setSkipNotification(1);
$wiki->setSkipNotification();
ok( $wiki->get('skipNotification'), 'setSkipNotification sets skipNotification' );
# add revision