[BUGFIX] Fix unit test failure if gif compress is disabled
authorSusanne Moog <typo3@susannemoog.de>
Sat, 30 Jun 2012 13:45:00 +0000 (15:45 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 30 Jun 2012 14:00:21 +0000 (16:00 +0200)
If gif_compress is disabled in the install tool, the
test gifCompressFixesPermissionOfConvertedFileIfUsingGd
fails, as the method it tests only does things if
gif_compress is enabled.

Change-Id: I91603452e43188cd38afeb3ca8b38e2913848e66
Fixes: #38501
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/12476
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
tests/t3lib/t3lib_divTest.php

index 5ea4e88..c585a15 100644 (file)
@@ -102,6 +102,8 @@ class t3lib_divTest extends tx_phpunit_testcase {
                $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib'] = TRUE;
                $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png'] = FALSE;
 
+               $GLOBALS['TYPO3_CONF_VARS']['GFX']['gif_compress'] = TRUE;
+
                        // Copy file to unique filename in typo3temp, set target permissions and run method
                $testFilename = PATH_site . 'typo3temp/' . uniqid('test_') . '.gif';
                @copy($fixtureGifFile, $testFilename);