Bugzilla – Attachment 123149 Details for
Bug 28306
Allow to query database with minimal memory footprint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28306: Switch back to using 'mock' instead of 'redefine'
Bug-28306-Switch-back-to-using-mock-instead-of-red.patch (text/plain), 864 bytes, created by
Kyle M Hall (khall)
on 2021-07-23 19:22:54 UTC
(
hide
)
Description:
Bug 28306: Switch back to using 'mock' instead of 'redefine'
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-07-23 19:22:54 UTC
Size:
864 bytes
patch
obsolete
>From db3d92a7a824b9ebc9632f550ce68bbe2ac4c75b Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 23 Jul 2021 15:11:52 -0400 >Subject: [PATCH] Bug 28306: Switch back to using 'mock' instead of 'redefine' > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/lib/Mocks.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/lib/Mocks.pm b/t/lib/Mocks.pm >index 1a637f981e..97eb545ebd 100644 >--- a/t/lib/Mocks.pm >+++ b/t/lib/Mocks.pm >@@ -45,7 +45,7 @@ sub mock_config { > my $koha_config = Test::MockModule->new('Koha::Config'); > my ( $conf, $value ) = @_; > $configs{$conf} = $value; >- $koha_config->redefine('get', sub { >+ $koha_config->mock('get', sub { > my ( $self, $conf ) = @_; > if ( exists $configs{$conf} ) { > return $configs{$conf} >-- >2.30.1 (Apple Git-130)
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 28306
:
120752
|
120794
|
123145
|
123148
| 123149 |
123150
|
123151
|
124274
|
124282