diff --git a/t/Asset/File/Image/Photo/000-makeResolutions.t b/t/Asset/File/Image/Photo/010-makeResolutions.t similarity index 96% rename from t/Asset/File/Image/Photo/000-makeResolutions.t rename to t/Asset/File/Image/Photo/010-makeResolutions.t index 974f3b4a3..7d7c4744a 100644 --- a/t/Asset/File/Image/Photo/000-makeResolutions.t +++ b/t/Asset/File/Image/Photo/010-makeResolutions.t @@ -19,6 +19,15 @@ use Scalar::Util qw( blessed ); use WebGUI::Test; use WebGUI::Session; use Test::More; +my $graphicsClass; +BEGIN { + if (eval { require Graphics::Magick; 1 }) { + $graphicsClass = 'Graphics::Magick'; + } + elsif (eval { require Image::Magick; 1 }) { + $graphicsClass = 'Image::Magick'; + } +} use WebGUI::Asset::File::Image::Photo; #----------------------------------------------------------------------------