Bugzilla – Attachment 180580 Details for
Bug 35267
Clarify CSS options for Notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35267: Update unit tests
Bug-35267-Update-unit-tests.patch (text/plain), 1.48 KB, created by
Martin Renvoize (ashimema)
on 2025-04-03 14:37:48 UTC
(
hide
)
Description:
Bug 35267: Update unit tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-04-03 14:37:48 UTC
Size:
1.48 KB
patch
obsolete
>From 53a34f25d8e4da6daf7103797bb37eb0fd212be4 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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. > >Sponsored-by: PTFS Europe <https://ptfs-europe.com> >--- > 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 1bd204d01f7..03027662a9f 100755 >--- a/t/db_dependent/Koha/Notice/Message.t >+++ b/t/db_dependent/Koha/Notice/Message.t >@@ -145,7 +145,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"; >@@ -166,7 +166,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{<link rel="stylesheet" type="text/css" href="$css_sheet">}; > > $wrapped_compare = <<"WRAPPED"; >-- >2.49.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35267
:
172414
|
172415
|
172416
|
172417
|
172418
|
172457
|
172458
|
172459
|
172460
|
172461
|
172462
|
172463
|
172474
|
172475
|
172476
|
172477
|
172478
|
172479
|
172480
|
172485
|
172486
|
172487
|
172488
|
172489
|
172490
|
172491
|
175531
|
175532
|
175533
|
175534
|
175535
|
175536
|
175706
|
175707
|
175708
|
175709
|
175710
|
175711
|
175715
|
175716
|
175717
|
175718
|
175719
|
175721
|
175723
|
175724
|
175725
|
175726
|
175727
|
175728
|
175729
|
178485
|
178486
|
178487
|
178488
|
178489
|
178490
|
178491
|
180574
|
180575
|
180576
|
180577
|
180578
|
180579
|
180580
|
180963
|
180964
|
180965
|
180966
|
180967
|
180968
|
180969
|
180970
|
180971