mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
make controller test template extends ControllerTestCase
This commit is contained in:
parent
6933b31be5
commit
a238116734
1 changed files with 5 additions and 1 deletions
|
@ -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)): ?>
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue