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>
(cherry picked from commit c57655d4ad)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
a7dd3dcc3f
commit
946764c470
|
|
@ -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 New Issue