Issue #2918570 by xjm: Hotfix for ToolkitGdTest

8.5.x
xjm 2017-11-29 16:58:28 -06:00
parent 8e461b3682
commit 7ea6068f6d
1 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,9 @@ class ToolkitGdTest extends KernelTestBase {
];
// Systems using non-bundled GD2 don't have imagerotate. Test if available.
if (function_exists('imagerotate')) {
// @todo Remove the version check once
// https://www.drupal.org/project/drupal/issues/2670966 is resolved.
if (function_exists('imagerotate') && (version_compare(phpversion(), '7.0.26') < 0)) {
$operations += [
'rotate_5' => [
'function' => 'rotate',