Since commit 5024cb3acffdfb9f67dce5587eb062ea3130bdbb Bug 21596: Handle empty string for other attributes when storing a patron There is a failure from t/Auth_with_shibboleth.t: DBI Exception: DBD::SQLite::st execute failed: NOT NULL constraint failed: borrowers.updated_on
I have isolated the issue with this code. I do not understand why the default value (CURRENT_TIMESTAMP) is not picked. #!/usr/bin/perl use Modern::Perl; use Test::MockModule; use Koha::Patrons; use Koha::Patron::Categories; use Test::DBIx::Class { schema_class => 'Koha::Schema', connect_info => [ 'dbi:SQLite:dbname=:memory:', '', '' ] }; my $database = Test::MockModule->new('Koha::Database'); $database->mock( _new_schema => sub { return Schema(); } ); Koha::Patron::Category->new({categorycode => 'S'})->store; my $borrower = { categorycode => 'S', userid => 'test4321', }; my $patron = Koha::Patron->new( $borrower )->store;
Fixed by Marcel's patch on bug 21610 comment 10 *** This bug has been marked as a duplicate of bug 21610 ***