Bugzilla – Attachment 103928 Details for
Bug 25296
Add a way to force an empty Koha::Objects resultset
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25296: Tests for uninstantiated behaviour
Bug-25296-Tests-for-uninstantiated-behaviour.patch (text/plain), 1.20 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-04-29 12:31:40 UTC
(
hide
)
Description:
Bug 25296: Tests for uninstantiated behaviour
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-04-29 12:31:40 UTC
Size:
1.20 KB
patch
obsolete
>From a3adfc8d944e3e1a4e5d1e333c34a02e7a655c61 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 29 Apr 2020 09:27:22 -0300 >Subject: [PATCH] Bug 25296: Tests for uninstantiated behaviour > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/Objects.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Objects.t b/t/db_dependent/Koha/Objects.t >index 2af778a85a..632d770644 100644 >--- a/t/db_dependent/Koha/Objects.t >+++ b/t/db_dependent/Koha/Objects.t >@@ -802,7 +802,7 @@ subtest 'prefetch_whitelist() tests' => sub { > > subtest 'empty() tests' => sub { > >- plan tests => 3; >+ plan tests => 5; > > $schema->storage->txn_begin; > >@@ -814,5 +814,9 @@ subtest 'empty() tests' => sub { > is( ref($empty), 'Koha::Patrons', '->empty returns a Koha::Patrons iterator' ); > is( $empty->count, 0, 'The empty resultset is, well, empty :-D' ); > >+ $empty = Koha::Patrons->empty; >+ is( ref($empty), 'Koha::Patrons', 'without being instantiated, ->empty still returns a Koha::Patrons iterator' ); >+ is( $empty->count, 0, 'The empty resultset is, well, empty :-D' ); >+ > $schema->storage->txn_rollback; > }; >-- >2.26.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 25296
:
103811
|
103812
|
103860
|
103861
|
103928
|
103929
|
103934
|
103935
|
103936
|
103937