Bug 14637: Fix add patron category under MySQL 5.7 - tests
Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
2fe2ef41bd
commit
5ea0b70dad
1 changed files with 10 additions and 0 deletions
|
@ -103,6 +103,16 @@ subtest 'BlockExpiredPatronOpacActions' => 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;
|
||||
|
|
Loading…
Reference in a new issue