Bugzilla – Attachment 96989 Details for
Bug 24263
borrowers.relationship should not contain an empty string
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24263: Add tests
Bug-24263-Add-tests.patch (text/plain), 1.17 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-01-08 13:12:37 UTC
(
hide
)
Description:
Bug 24263: Add tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-01-08 13:12:37 UTC
Size:
1.17 KB
patch
obsolete
>From adafc4af4d5eae6fe92d4a06794f768bfdbb5f86 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 18 Dec 2019 14:04:35 +0100 >Subject: [PATCH] Bug 24263: Add tests > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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 66af494ff8..2fb51bcaeb 100644 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -1672,7 +1672,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; > >@@ -1707,6 +1707,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.24.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24263
:
96418
|
96419
|
96420
|
96531
|
96532
|
96533
| 96989 |
96990
|
96991
|
96992