From 24d12b0ecb176fc32d4815e7bae91b9bdce2c1eb Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 23 Mar 2021 12:19:48 -0300 Subject: [PATCH] Bug 28017: Test IPs are supported Signed-off-by: Tomas Cohen Arazi --- t/Koha/Email.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/Koha/Email.t b/t/Koha/Email.t index 7f67e329bd8..72f2d5fd025 100755 --- a/t/Koha/Email.t +++ b/t/Koha/Email.t @@ -28,7 +28,7 @@ use_ok('Koha::Email'); subtest 'create() tests' => sub { - plan tests => 24; + plan tests => 25; t::lib::Mocks::mock_preference( 'SendAllEmailsTo', undef ); @@ -64,13 +64,14 @@ subtest 'create() tests' => sub { $email = Koha::Email->create( { - from => 'from@example.com', + from => 'from@8.8.8.8', to => 'to@example.com', bcc => 'root@localhost', } ); is( $email->email->header('Bcc'), 'root@localhost', 'Non-FQDN (@localhost) supported' ); + is( $email->email->header('From'), 'from@8.8.8.8', 'IPs supported' ); t::lib::Mocks::mock_preference( 'SendAllEmailsTo', 'catchall@example.com' ); t::lib::Mocks::mock_preference( 'ReplytoDefault', 'replytodefault@example.com' ); -- 2.31.0