setPublicAck: initial tests and docs.
This commit is contained in:
parent
dcdfa51d23
commit
2676dfba22
1 changed files with 1 additions and 8 deletions
|
@ -8,7 +8,7 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 242;
|
||||
use Test::More tests => 241;
|
||||
use Test::Exception;
|
||||
use Sub::Override;
|
||||
use File::Temp qw/tempfile/;
|
||||
|
@ -263,13 +263,6 @@ dies_ok { $sp->setPublicAck(0); } "setPublicAck: fails supporterId invali
|
|||
dies_ok { $sp->setPublicAck("String"); } "setPublicAck: fails supporterId is string";
|
||||
dies_ok { $sp->setPublicAck(undef); } "setPublicAck: fails supporterId is undef";
|
||||
|
||||
# Replace _verifyId() to always return true
|
||||
|
||||
$overrideSub = Sub::Override->new( 'Supporters::_verifyId' => sub ($$) { return 1;} );
|
||||
dies_ok { $publicAckVal = $sp->setPublicAck(0); }
|
||||
"setPublicAck: fails when rows are not returned but _verifyId() somehow passed";
|
||||
$overrideSub->restore;
|
||||
|
||||
is($sp->getPublicAck($olsonId), 0, "setPublicAck: 1 failed calls changed nothing.");
|
||||
is($sp->getPublicAck($drapperId), 1, "setPublicAck: 1 failed calls changed nothing.");
|
||||
is($sp->getPublicAck($sterlingId), undef, "setPublicAck: 1 failed calls changed nothing.");
|
||||
|
|
Loading…
Reference in a new issue