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:
Jonathan Druart 2016-09-06 10:40:28 +01:00 committed by Kyle M Hall
parent 2fe2ef41bd
commit 5ea0b70dad

View file

@ -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;