silverstripe/silverstripe-framework — pull request #2140 by jthomerson (2013-06-22 12:59:36+00:00)
Title: TEST: boolean include template arguments don't evaluate correctly

When you pass boolean arguments to an include they get converted to strings and thus do not work for conditional evaluations inside the include. It seems that you should be able to use at least the following three types of arguments to an include and use them as a conditional statement inside the include:

1. method return or field value that returns / is boolean
2. method return or field value that returns / is zero or one
3. hard-coded true/false in the calling template to turn features of the include on or off depending on where you are including it.

This test reproduces those scenarios and shows that they are failing so that we can use it as a basis for fixing the functionality.