Browse Source

baked tests match code standard by default

AD7six 14 years ago
parent
commit
6aca8036f4
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/Cake/Console/Templates/default/classes/test.ctp

+ 1 - 2
lib/Cake/Console/Templates/default/classes/test.ctp

@@ -23,7 +23,7 @@ echo "<?php\n";
 App::uses('<?php echo $dependency[0]; ?>', '<?php echo $dependency[1]; ?>');
 <?php endforeach; ?>
 
-<?php if ($mock and strtolower($type) == 'controller'): ?>
+<?php if ($mock && strtolower($type) === 'controller'): ?>
 /**
  * Test<?php echo $fullClassName; ?>
  *
@@ -99,7 +99,6 @@ class <?php echo $fullClassName; ?>Test extends CakeTestCase {
  * @return void
  */
 	public function test<?php echo Inflector::camelize($method); ?>() {
-
 	}
 
 <?php endforeach;?>