View | Details | Raw Unified | Return to bug 28023
Collapse All | Expand All

(-)a/t/Koha/Email.t (-3 / +2 lines)
Lines 51-57 subtest 'create() tests' => sub { Link Here
51
    is( $email->email->header('To'), 'to@example.com', 'Value set correctly' );
51
    is( $email->email->header('To'), 'to@example.com', 'Value set correctly' );
52
    is( $email->email->header('Cc'), 'cc@example.com', 'Value set correctly' );
52
    is( $email->email->header('Cc'), 'cc@example.com', 'Value set correctly' );
53
    is( $email->email->header('Bcc'), 'bcc@example.com', 'Value set correctly' );
53
    is( $email->email->header('Bcc'), 'bcc@example.com', 'Value set correctly' );
54
    is( $email->email->header('ReplyTo'), 'reply_to@example.com', 'Value set correctly' );
54
    is( $email->email->header('Reply-To'), 'reply_to@example.com', 'Value set correctly' );
55
    is( $email->email->header('Sender'), 'sender@example.com', 'Value set correctly' );
55
    is( $email->email->header('Sender'), 'sender@example.com', 'Value set correctly' );
56
    is( $email->email->header('Subject'), 'Some subject', 'Value set correctly' );
56
    is( $email->email->header('Subject'), 'Some subject', 'Value set correctly' );
57
    is( $email->email->header('X-Mailer'), 'Koha', 'Value set correctly' );
57
    is( $email->email->header('X-Mailer'), 'Koha', 'Value set correctly' );
Lines 78-84 subtest 'create() tests' => sub { Link Here
78
    is( $email->email->header('To'), 'catchall@example.com', 'SendAllEmailsTo overloads any address' );
78
    is( $email->email->header('To'), 'catchall@example.com', 'SendAllEmailsTo overloads any address' );
79
    is( $email->email->header('Cc'), undef, 'SendAllEmailsTo overloads any address' );
79
    is( $email->email->header('Cc'), undef, 'SendAllEmailsTo overloads any address' );
80
    is( $email->email->header('Bcc'), undef, 'SendAllEmailsTo overloads any address' );
80
    is( $email->email->header('Bcc'), undef, 'SendAllEmailsTo overloads any address' );
81
    is( $email->email->header('ReplyTo'), 'replytodefault@example.com', 'ReplytoDefault picked when replyto not passed' );
81
    is( $email->email->header('Reply-To'), 'replytodefault@example.com', 'ReplytoDefault picked when replyto not passed' );
82
    is( $email->email->header('Sender'), 'returnpathdefault@example.com', 'ReturnpathDefault picked when sender not passed' );
82
    is( $email->email->header('Sender'), 'returnpathdefault@example.com', 'ReturnpathDefault picked when sender not passed' );
83
    is( $email->email->header('Subject'), '', 'No subject passed, empty string' );
83
    is( $email->email->header('Subject'), '', 'No subject passed, empty string' );
84
    is( $email->email->body, $text_body, "Body set correctly" );
84
    is( $email->email->body, $text_body, "Body set correctly" );
85
- 

Return to bug 28023