From d6a167b345edfeb99eb7942c403785ba24a75b79 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 19 Dec 2024 12:44:54 +0000 Subject: [PATCH] Bug 35267: Update unit tests This patch simply updates the existing unit tests to rename NoticeCSS to AllNoticesStylesheet as per the rest of the patchset. --- t/db_dependent/Koha/Notice/Message.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Notice/Message.t b/t/db_dependent/Koha/Notice/Message.t index d5ebe527882..261a1edb180 100755 --- a/t/db_dependent/Koha/Notice/Message.t +++ b/t/db_dependent/Koha/Notice/Message.t @@ -144,7 +144,7 @@ subtest 'html_content() tests' => sub { } ); - t::lib::Mocks::mock_preference( 'NoticeCSS', '' ); + t::lib::Mocks::mock_preference( 'AllNoticeStylesheet', '' ); my $css_import = ''; my $message = Koha::Notice::Messages->find($message_id); my $wrapped_compare = <<"WRAPPED"; @@ -165,7 +165,7 @@ WRAPPED is( $message->html_content, $wrapped_compare, "html_content returned the correct html wrapped letter" ); my $css_sheet = 'https://localhost/shiny.css'; - t::lib::Mocks::mock_preference( 'NoticeCSS', $css_sheet ); + t::lib::Mocks::mock_preference( 'AllNoticeStylesheet', $css_sheet ); $css_import = qq{}; $wrapped_compare = <<"WRAPPED"; -- 2.47.1