This fixes an issue where CakeTestCase::testAction() would always include the layout, regardless if the setting return was set to either 'view' or 'contents'. Previous unit test was always succeeding because it did not correctly checked that the layout was not included when return was set to 'view'.
NOTE: This was originally pull request #12, but Mark correctly pointed out that the solution included a feature that was removed in 1.3, so I refactored the code to still fix the failing test case, but only do the appropriate fix in CakeTestCase
Fixing wrong assertion in test for CakeTestCase::testAction. Fixing t…
…estAction issue that would always include layout
This is a much more reasonable change I think.
Looks like its been merged in, thanks for the patch :)