Bugzilla – Attachment 92733 Details for
Bug 23599
Koha::Objects::Limit::Library fails if no library passed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23599: Regression tests
Bug-23599-Regression-tests.patch (text/plain), 1.59 KB, created by
Martin Renvoize (ashimema)
on 2019-09-12 14:58:59 UTC
(
hide
)
Description:
Bug 23599: Regression tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-09-12 14:58:59 UTC
Size:
1.59 KB
patch
obsolete
>From e26b379b50c93654f3edd1d4a838512dd812ac8b Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 12 Sep 2019 11:37:34 -0300 >Subject: [PATCH] Bug 23599: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/db_dependent/Koha/Patron/Attribute/Types.t | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Patron/Attribute/Types.t b/t/db_dependent/Koha/Patron/Attribute/Types.t >index 8c49a45474..ebb31a9512 100644 >--- a/t/db_dependent/Koha/Patron/Attribute/Types.t >+++ b/t/db_dependent/Koha/Patron/Attribute/Types.t >@@ -27,7 +27,6 @@ use Test::Exception; > > use C4::Context; > use Koha::Database; >-use Koha::Patron::Attribute::Type; > use Koha::Patron::Attribute::Types; > > my $schema = Koha::Database->new->schema; >@@ -289,7 +288,7 @@ subtest 'replace_library_limits() tests' => sub { > > subtest 'search_with_library_limits() tests' => sub { > >- plan tests => 3; >+ plan tests => 4; > > $schema->storage->txn_begin; > >@@ -326,6 +325,9 @@ subtest 'search_with_library_limits() tests' => sub { > 3, '3 attribute types are available for the specified branch' ); > is( Koha::Patron::Attribute::Types->search_with_library_limits( {}, {}, $branch_2 )->count, > 3, '3 attribute types are available for the specified branch' ); >+ is( Koha::Patron::Attribute::Types->search_with_library_limits( {}, {}, undef )->count, >+ 4, '4 attribute types are available with no library passed' >+ ); > > $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 23599
:
92730
|
92731
| 92733 |
92734