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: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Jonathan Druart 2016-09-06 10:40:28 +01:00 committed by Mason James
parent 896794bd35
commit f75437546f
1 changed files with 10 additions and 0 deletions

View File

@ -52,6 +52,16 @@ is_deeply( $retrieved_category_1->default_messaging, [], 'By default there is no
$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;