4 use Test::More tests => 4; # last test to print
8 my $from = 'chrisc@catalyst.net.nz';
9 t::lib::Mocks::mock_preference('ReplytoDefault', $from);
10 t::lib::Mocks::mock_preference('ReturnpathDefault', $from);
14 ok( my $email = Koha::Email->new(), 'Create a Koha::Email Object');
15 ok( my %mail = $email->create_message_headers({from => $from}),'Set headers');
16 is ($mail{'From'}, $from, 'Set correctly');