@@ -, +, @@ 5.7 - tests --- t/db_dependent/Koha/Patron/Categories.t | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/t/db_dependent/Koha/Patron/Categories.t +++ a/t/db_dependent/Koha/Patron/Categories.t @@ -86,6 +86,16 @@ subtest 'get_expiry_date' => sub { $retrieved_category_1->delete; is( Koha::Patron::Categories->search->count, $nb_of_categories + 1, 'Delete should have deleted the patron category' ); +my $new_category_4 = Koha::Patron::Category->new( + { categorycode => 'mycatcodeW', + category_type => 'A', + description => 'mycatdescW', + upperagelimit => '', + dateofbirthrequired => '', + } +)->store; +is( Koha::Patron::Categories->search->count, $nb_of_categories + 2, 'upperagelimit and dateofbirthrequired should have a default value if empty string is passed' ); + $schema->storage->txn_rollback; 1; --