[TYPO3-core] RFC #14982: Make alt_doc.php unittest-able
Christian Kuhn
lolli at schwarzbu.ch
Tue Jul 6 22:45:14 CEST 2010
Ingo Schmitt wrote:
> 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.
+1 on reading and testing for 4.4 and trunk.
Thanks
Christian
More information about the TYPO3-team-core
mailing list