Bugzilla – Attachment 123876 Details for
Bug 28871
Koha::Objects->empty doesn't work correctly in list context
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28871: Regression test
Bug-28871-Regression-test.patch (text/plain), 1.01 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-08-17 15:01:51 UTC
(
hide
)
Description:
Bug 28871: Regression test
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-08-17 15:01:51 UTC
Size:
1.01 KB
patch
obsolete
>From de5d9ce0e3c67bcdef94566d5d1eb746f5ba61e8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 17 Aug 2021 11:36:57 -0300 >Subject: [PATCH] Bug 28871: Regression test > >--- > t/db_dependent/Koha/Objects.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Objects.t b/t/db_dependent/Koha/Objects.t >index 554b631741..eaf5e75bf2 100755 >--- a/t/db_dependent/Koha/Objects.t >+++ b/t/db_dependent/Koha/Objects.t >@@ -1219,7 +1219,7 @@ subtest 'prefetch_whitelist() tests' => sub { > > subtest 'empty() tests' => sub { > >- plan tests => 6; >+ plan tests => 7; > > $schema->storage->txn_begin; > >@@ -1242,6 +1242,9 @@ subtest 'empty() tests' => sub { > > is( "$@", 'Tried to access the \'empty\' method, but Koha::Patrons is not instantiated', 'Exception stringified correctly' ); > >+ my @patrons = Koha::Patrons->new->empty; >+ is( scalar @patrons, 0, 'List context makes ->empty return an empty list' ); >+ > $schema->storage->txn_rollback; > }; > >-- >2.30.2
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 28871
:
123876
|
123877
|
123878
|
123879
|
123925
|
123926
|
123987
|
123988