Skip to content
Permalink
Browse files

make controller test template extends ControllerTestCase

  • Loading branch information...
huoxito committed May 10, 2012
1 parent 6933b31 commit a23811673421bc919fe0d1323b27cdd88e160343
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Console/Templates/default/classes/test.ctp
@@ -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)): ?>
/**

0 comments on commit a238116

Please sign in to comment.
You can’t perform that action at this time.