diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index f8488c220..059aaca7d 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -22,6 +22,7 @@ require_relative '../test_helper'
class ApplicationHelperTest < Redmine::HelperTest
include ERB::Util
include AvatarsHelper
+ include IconsHelper
def setup
super
@@ -2431,8 +2432,10 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def pre_wrapper(text)
- '
' +
- '' +
+ icon = sprite_icon('copy-pre-content', size: 18)
+ button_copy = l(:button_copy)
+ '
'
end
diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
index a115f2ede..57c6417ef 100644
--- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
@@ -23,6 +23,7 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest
include ActionView::Helpers::TextHelper
include ActionView::Helpers::SanitizeHelper
include ERB::Util
+ include IconsHelper
extend ActionView::Helpers::SanitizeHelper::ClassMethods
def setup
@@ -627,8 +628,10 @@ class Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest
end
def pre_wrapper(text)
- '
' +
- '' +
+ icon = sprite_icon('copy-pre-content', size: 18)
+ button_copy = l(:button_copy)
+ '
'
end