Bugzilla – Attachment 137369 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), 964 bytes, created by
Jonathan Druart
on 2022-07-08 07:10:16 UTC
(
hide
)
Description:
Bug 28787: Mock send_or_die
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-08 07:10:16 UTC
Size:
964 bytes
patch
obsolete
>From 67eedb6c556061b00c56f6a31c849afce06ae603 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. >--- > 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.25.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 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