Bugzilla – Attachment 127397 Details for
Bug 29427
Debug mode not honoured in SMTP transport
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29427: Regression tests
Bug-29427-Regression-tests.patch (text/plain), 1.40 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-11-05 15:52:47 UTC
(
hide
)
Description:
Bug 29427: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-11-05 15:52:47 UTC
Size:
1.40 KB
patch
obsolete
>From a5e5bae9e06b944e84b8f5f38fb99ae0a3ec23b8 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 5 Nov 2021 12:50:01 -0300 >Subject: [PATCH] Bug 29427: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/SMTP/Server.t | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/SMTP/Server.t b/t/db_dependent/Koha/SMTP/Server.t >index 3a1c423e5e..c951196f2d 100755 >--- a/t/db_dependent/Koha/SMTP/Server.t >+++ b/t/db_dependent/Koha/SMTP/Server.t >@@ -31,14 +31,14 @@ my $builder = t::lib::TestBuilder->new; > > subtest 'transport() tests' => sub { > >- plan tests => 4; >+ plan tests => 6; > > $schema->storage->txn_begin; > > my $server = $builder->build_object( > { > class => 'Koha::SMTP::Servers', >- value => { ssl_mode => 'disabled' } >+ value => { ssl_mode => 'disabled', debug => 0 } > } > ); > >@@ -52,6 +52,12 @@ subtest 'transport() tests' => sub { > > is( ref($transport), 'Email::Sender::Transport::SMTP', 'Type is correct' ); > is( $transport->ssl, '1', 'SSL is set' ); >+ is( $transport->debug, '0', 'Debug setting honoured (disabled)' ); >+ >+ $server->set({ debug => 1 })->store; >+ $transport = $server->transport; >+ >+ is( $transport->debug, '1', 'Debug setting honoured (enabled)' ); > > $schema->storage->txn_rollback; > }; >-- >2.32.0
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 29427
:
127397
|
127398
|
127402
|
127403
|
127427
|
127428