Bugzilla – Attachment 138703 Details for
Bug 28787
Send a notice with the TOTP token
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28787: Mock send_or_die
Bug-28787-Mock-sendordie.patch (text/plain), 1.09 KB, created by
Kyle M Hall (khall)
on 2022-08-05 14:25:03 UTC
(
hide
)
Description:
Bug 28787: Mock send_or_die
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-08-05 14:25:03 UTC
Size:
1.09 KB
patch
obsolete
>From d3d5c6041c8f63df1e81a1c3a48332297256d05b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 8 Jul 2022 09:05:26 +0200 >Subject: [PATCH] Bug 28787: Mock send_or_die > >To make the tests pass even if no SMTP server is defined. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Sponsored-by: Rijksmuseum, Netherlands > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/api/v1/two_factor_auth.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/api/v1/two_factor_auth.t b/t/db_dependent/api/v1/two_factor_auth.t >index 402d78ac6c1..325a5de3708 100755 >--- a/t/db_dependent/api/v1/two_factor_auth.t >+++ b/t/db_dependent/api/v1/two_factor_auth.t >@@ -36,6 +36,11 @@ t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' ); > my $remote_address = '127.0.0.1'; > my $t = Test::Mojo->new('Koha::REST::V1'); > >+my $mocked_koha_email = Test::MockModule->new('Koha::Email'); >+$mocked_koha_email->mock( 'send_or_die', sub { >+ return 1; >+}); >+ > subtest 'send_otp_token' => sub { > > plan tests => 9; >-- >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 28787
:
135287
|
136571
|
136572
|
136573
|
137251
|
137330
|
137331
|
137369
|
137370
|
137371
|
137379
|
137380
|
137381
|
137391
|
137392
|
137393
|
137394
|
137395
|
137396
|
137397
|
137398
|
137399
|
137400
|
138146
|
138149
|
138150
|
138151
|
138152
|
138153
|
138154
|
138155
|
138156
|
138157
|
138158
|
138159
|
138689
|
138696
|
138697
|
138698
|
138699
|
138700
|
138701
|
138702
| 138703 |
138704
|
138705
|
138706
|
138707
|
138931
|
138932