Update tests for changes to skipNotification.
This commit is contained in:
parent
924686b8eb
commit
fc68756975
2 changed files with 2 additions and 1 deletions
|
|
@ -481,6 +481,7 @@ Sets a flag so that developers know whether to send notifications out on certain
|
||||||
sub setSkipNotification {
|
sub setSkipNotification {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->session->db->write("update assetData set skipNotification=1 where assetId=? and revisionDate=?", [$self->getId, $self->get("revisionDate")]);
|
$self->session->db->write("update assetData set skipNotification=1 where assetId=? and revisionDate=?", [$self->getId, $self->get("revisionDate")]);
|
||||||
|
$self->{_properties}->{skipNotification} = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ ok(
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# skip notification
|
# skip notification
|
||||||
ok( !$wiki->get('skipNotification'), 'skipNotification defaults to false' );
|
ok( !$wiki->get('skipNotification'), 'skipNotification defaults to false' );
|
||||||
$wiki->setSkipNotification(1);
|
$wiki->setSkipNotification();
|
||||||
ok( $wiki->get('skipNotification'), 'setSkipNotification sets skipNotification' );
|
ok( $wiki->get('skipNotification'), 'setSkipNotification sets skipNotification' );
|
||||||
|
|
||||||
# add revision
|
# add revision
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue