Bug 16805: Tweak new test message to say getalert
It said 'addalert', which is likely a cut-paste typo. Plus, let's keep running the other tests if that one goes bad. TEST PLAN --------- 1) Apply Jonathan's test patch 2) prove t/db_dependent/Letters.t -- dies before finishing tests 3) Apply this test patch 4) prove t/db_dependent/Letters.t -- still dies before finished tests, 'addalert' now is 'getalert' in message. 5) run koha qa test tools. Signed-off-by: Mark Tompsett <mtompset@hotmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
5821ff3867
commit
c57655d4ad
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ isnt( $alert_id, undef, 'addalert does not return undef' );
|
|||
|
||||
# getalert
|
||||
my $alerts = C4::Letters::getalert();
|
||||
is( @$alerts, 1, 'addalert should not fail without parameter' );
|
||||
is( @$alerts, 1, 'getalert should not fail without parameter' );
|
||||
$alerts = C4::Letters::getalert($borrowernumber);
|
||||
is( @$alerts, 1, 'addalert adds an alert' );
|
||||
is( $alerts->[0]->{alertid}, $alert_id, 'addalert returns the alert id correctly' );
|
||||
|
|
Loading…
Reference in a new issue