View | Details | Raw Unified | Return to bug 16805
Collapse All | Expand All

(-)a/t/db_dependent/Letters.t (-2 / +1 lines)
Lines 213-219 isnt( $alert_id, undef, 'addalert does not return undef' ); Link Here
213
213
214
# getalert
214
# getalert
215
my $alerts = C4::Letters::getalert();
215
my $alerts = C4::Letters::getalert();
216
is( @$alerts, 1, 'addalert should not fail without parameter' );
216
is( @$alerts, 1, 'getalert should not fail without parameter' );
217
$alerts = C4::Letters::getalert($borrowernumber);
217
$alerts = C4::Letters::getalert($borrowernumber);
218
is( @$alerts, 1, 'addalert adds an alert' );
218
is( @$alerts, 1, 'addalert adds an alert' );
219
is( $alerts->[0]->{alertid}, $alert_id, 'addalert returns the alert id correctly' );
219
is( $alerts->[0]->{alertid}, $alert_id, 'addalert returns the alert id correctly' );
220
- 

Return to bug 16805