Bug 28017: Regression tests
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
0fd2be61e8
commit
d949c4fc20
|
|
@ -28,7 +28,7 @@ use_ok('Koha::Email');
|
|||
|
||||
subtest 'create() tests' => sub {
|
||||
|
||||
plan tests => 23;
|
||||
plan tests => 24;
|
||||
|
||||
t::lib::Mocks::mock_preference( 'SendAllEmailsTo', undef );
|
||||
|
||||
|
|
@ -62,6 +62,16 @@ subtest 'create() tests' => sub {
|
|||
like( $email->email->content_type, qr|charset="?iso-8859-1"?|, "Charset set correctly");
|
||||
like( $email->email->header('Message-ID'), qr/\<.*@.*\>/, 'Value set correctly' );
|
||||
|
||||
$email = Koha::Email->create(
|
||||
{
|
||||
from => 'from@example.com',
|
||||
to => 'to@example.com',
|
||||
bcc => 'root@localhost',
|
||||
}
|
||||
);
|
||||
|
||||
is( $email->email->header('Bcc'), 'root@localhost', 'Non-FQDN (@localhost) supported' );
|
||||
|
||||
t::lib::Mocks::mock_preference( 'SendAllEmailsTo', 'catchall@example.com' );
|
||||
t::lib::Mocks::mock_preference( 'ReplytoDefault', 'replytodefault@example.com' );
|
||||
t::lib::Mocks::mock_preference( 'ReturnpathDefault', 'returnpathdefault@example.com' );
|
||||
|
|
|
|||
Loading…
Reference in New Issue