Lines 23-29
use C4::Letters;
Link Here
|
23 |
|
23 |
|
24 |
use Koha::DateUtils qw( dt_from_string ); |
24 |
use Koha::DateUtils qw( dt_from_string ); |
25 |
|
25 |
|
26 |
use Test::More tests => 97; |
26 |
use Test::More tests => 98; |
27 |
use Test::Warn; |
27 |
use Test::Warn; |
28 |
|
28 |
|
29 |
BEGIN { |
29 |
BEGIN { |
Lines 85-90
is( $suggestion->{biblionumber}, $my_suggestion->{biblionumber}, 'NewSuggestion
Link Here
|
85 |
is( $suggestion->{STATUS}, 'ASKED', 'NewSuggestion stores a suggestion with the status ASKED by default' ); |
85 |
is( $suggestion->{STATUS}, 'ASKED', 'NewSuggestion stores a suggestion with the status ASKED by default' ); |
86 |
is( $suggestion->{managedby}, undef, 'NewSuggestion stores empty string as undef for non existent foreign key (integer)' ); |
86 |
is( $suggestion->{managedby}, undef, 'NewSuggestion stores empty string as undef for non existent foreign key (integer)' ); |
87 |
is( $suggestion->{manageddate}, undef, 'NewSuggestion stores empty string as undef for date' ); |
87 |
is( $suggestion->{manageddate}, undef, 'NewSuggestion stores empty string as undef for date' ); |
|
|
88 |
is( $suggestion->{budgetid}, undef, 'NewSuggestion should set budgetid to NULL if not given' ); |
89 |
|
88 |
is( CountSuggestion('ASKED'), 1, 'CountSuggestion returns the correct number of suggestions' ); |
90 |
is( CountSuggestion('ASKED'), 1, 'CountSuggestion returns the correct number of suggestions' ); |
89 |
|
91 |
|
90 |
|
92 |
|
91 |
- |
|
|