[TYPO3-core] RFC #14982: Make alt_doc.php unittest-able
Ingo Schmitt
spam at marketing-factory.de
Sat Jul 3 12:22:05 CEST 2010
This is an SVN patch request
Mantis reference: http://bugs.typo3.org/view.php?id=14982
Type: Bugfix
Branches: trunk, 4-4
Problem:
Currently it is not possible to write any unittest for alt_doc.php,
since template.php, init.php are included via require. Also $LANG should
be changed to $GLOBALS['LANG'].
Solution:
Change the require to require_once and change to $GLOBALS['LANG']
Note:
It could be discussed if this patch is a bugfix or a feature, but since
the core should be unittest-able since 4.4 I do consider it's a bug.
Mit freundlichen Gruessen
--
Ingo Schmitt mailto:is at marketing-factory.de
Marketing Factory Consulting GmbH http://typo3.marketing-factory.de/
Content Management mit Typo3: Beratung - Schulung - Realisierung
More information about the TYPO3-team-core
mailing list