diff --git a/t/Asset/File/GalleryFile/Photo/comment.t b/t/Asset/File/GalleryFile/Photo/comment.t index 040b4a4d3..7daca9b47 100644 --- a/t/Asset/File/GalleryFile/Photo/comment.t +++ b/t/Asset/File/GalleryFile/Photo/comment.t @@ -21,6 +21,7 @@ use Test::More; use Test::Deep; use Scalar::Util; use WebGUI::Asset::File::GalleryFile::Photo; +use WebGUI::International; #---------------------------------------------------------------------------- # Init @@ -268,7 +269,7 @@ like( "www_editCommentSave -- Permission denied if not Gallery->canAddComment", ); -my $i18n = $photo->i18n($session); +my $i18n = WebGUI::International->new($session, 'Asset_Photo'); my $errorMessage; # Required: commentId