make controller test template extends ControllerTestCase

This commit is contained in:
Washington 2012-05-10 20:34:30 -03:00
parent 6933b31be5
commit a238116734

View file

@ -56,7 +56,11 @@ class Test<?php echo $fullClassName; ?> extends <?php echo $fullClassName; ?> {
* <?php echo $fullClassName; ?> Test Case
*
*/
class <?php echo $fullClassName; ?>Test extends CakeTestCase {
<?php if ($mock and strtolower($type) == 'controller'): ?>
class <?php echo $fullClassName; ?>TestCase extends ControllerTestCase {
<?php else: ?>
class <?php echo $fullClassName; ?>TestCase extends CakeTestCase {
<?php endif; ?>
<?php if (!empty($fixtures)): ?>
/**