From 56d675396332acaa35baa8ef174830c889d2a063 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2019 14:04:35 +0100 Subject: [PATCH] Bug 24263: Add tests --- t/db_dependent/Koha/Patrons.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index 4d7063c497..c193a8eeac 100644 --- a/t/db_dependent/Koha/Patrons.t +++ b/t/db_dependent/Koha/Patrons.t @@ -1680,7 +1680,7 @@ subtest 'Test Koha::Patrons::merge' => sub { }; subtest '->store' => sub { - plan tests => 6; + plan tests => 7; my $schema = Koha::Database->new->schema; $schema->storage->txn_begin; @@ -1715,6 +1715,10 @@ subtest '->store' => sub { is( $patron_1->surname, $surname, 'Surname remains unchanged on store.'); + # Test relationship + $patron_1->relationship("")->store; + is( $patron_1->relationship, undef, ); + $schema->storage->dbh->{PrintError} = $print_error; $schema->storage->txn_rollback; -- 2.11.0