Bugzilla – Attachment 102540 Details for
Bug 25046
C4::Utils::DataTables::Members does not SELECT othernames from borrowers table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25046: Add test
Bug-25046-Add-test.patch (text/plain), 1.23 KB, created by
Jonathan Druart
on 2020-04-08 09:29:04 UTC
(
hide
)
Description:
Bug 25046: Add test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-04-08 09:29:04 UTC
Size:
1.23 KB
patch
obsolete
>From 9e7ed9003786bdc76f34b7c9d5de7dd8ae5ae14e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 8 Apr 2020 11:28:31 +0200 >Subject: [PATCH] Bug 25046: Add test > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Utils/Datatables_Members.t | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Utils/Datatables_Members.t b/t/db_dependent/Utils/Datatables_Members.t >index c91c69aaa0..e0632c4a2f 100644 >--- a/t/db_dependent/Utils/Datatables_Members.t >+++ b/t/db_dependent/Utils/Datatables_Members.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 52; >+use Test::More tests => 53; > > use C4::Context; > use C4::Members; >@@ -551,5 +551,15 @@ subtest 'Search with permissions' => sub { > ); > }; > >+subtest 'return values' => sub { >+ plan tests => 1; >+ my $search_results = C4::Utils::DataTables::Members::search({ >+ searchmember => "John Doe", >+ searchfieldstype => 'standard', >+ searchtype => 'contain', >+ }); >+ ok(exists $search_results->{patrons}->[0]->{othernames}, 'othernames should have been retrieved' ); >+}; >+ > # End > $schema->storage->txn_rollback; >-- >2.20.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 25046
:
102304
|
102467
|
102539
| 102540