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

(-)a/t/db_dependent/Koha/Notice/Message.t (-3 / +5 lines)
Lines 72-77 subtest 'html_content() tests' => sub { Link Here
72
        }
72
        }
73
    );
73
    );
74
74
75
    t::lib::Mocks::mock_preference( 'NoticeCSS', '' );
76
    my $css_import      = '';
75
    my $message         = Koha::Notice::Messages->find($message_id);
77
    my $message         = Koha::Notice::Messages->find($message_id);
76
    my $wrapped_compare = <<"WRAPPED";
78
    my $wrapped_compare = <<"WRAPPED";
77
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
79
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Lines 80-86 subtest 'html_content() tests' => sub { Link Here
80
  <head>
82
  <head>
81
    <title>$firstname</title>
83
    <title>$firstname</title>
82
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
84
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
83
85
    $css_import
84
  </head>
86
  </head>
85
  <body>
87
  <body>
86
  This is a test template using borrower $borrowernumber
88
  This is a test template using borrower $borrowernumber
Lines 92-97 WRAPPED Link Here
92
94
93
    my $css_sheet = 'https://localhost/shiny.css';
95
    my $css_sheet = 'https://localhost/shiny.css';
94
    t::lib::Mocks::mock_preference( 'NoticeCSS', $css_sheet );
96
    t::lib::Mocks::mock_preference( 'NoticeCSS', $css_sheet );
97
    $css_import = qq{<link rel="stylesheet" type="text/css" href="$css_sheet">};
95
98
96
    $wrapped_compare = <<"WRAPPED";
99
    $wrapped_compare = <<"WRAPPED";
97
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Lines 100-106 WRAPPED Link Here
100
  <head>
103
  <head>
101
    <title>$firstname</title>
104
    <title>$firstname</title>
102
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
105
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
103
    <link rel="stylesheet" type="text/css" href="$css_sheet">
106
    $css_import
104
  </head>
107
  </head>
105
  <body>
108
  <body>
106
  This is a test template using borrower $borrowernumber
109
  This is a test template using borrower $borrowernumber
107
- 

Return to bug 30287