http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62472
Revision: 62472 Author: mglaser Date: 2010-02-14 18:46:10 +0000 (Sun, 14 Feb 2010) Log Message: ----------- set wgTitle to avoid an error in wgOutputPage Modified Paths: -------------- trunk/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php Modified: trunk/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php =================================================================== --- trunk/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php 2010-02-14 17:11:23 UTC (rev 62471) +++ trunk/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php 2010-02-14 18:46:10 UTC (rev 62472) @@ -3,13 +3,16 @@ * - set a valid path to PEAR * - check upload size in php.ini: Multipage.tiff needs at least 3M * - Upload the image caspian.tif without PagedTiffHandler being active +* Caution: you need to allow tiff for upload: +* $wgFileExtensions[] = 'tiff'; +* $wgFileExtensions[] = 'tif'; * - Upload multipage.tiff when PagedTiffHandler is active */ if ( getenv( 'MW_INSTALL_PATH' ) ) { - $IP = getenv( 'MW_INSTALL_PATH' ); + $IP = getenv( 'MW_INSTALL_PATH' ); } else { - $IP = dirname( __FILE__ ) . '/../../..'; + $IP = dirname( __FILE__ ) . '/../../..'; } require_once( "$IP/maintenance/commandLine.inc" ); @@ -25,6 +28,9 @@ function setUp() { + global $wgTitle; + $wgTitle = Title::newFromText("PagedTiffHandler_UnitTest"); + $this->handler = new PagedTiffHandler(); $this->image = wfFindFile(Title::newFromText('Image:Multipage.tiff')); if (!$this->image) _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs