Correcting file naming for test cases

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5962 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-11-07 19:26:31 +00:00
parent 557a1bf239
commit 90d6659918
2 changed files with 2 additions and 2 deletions

View file

@ -469,7 +469,7 @@ class ControllerTask extends Shell {
$out .= "\n?>";
$path = CONTROLLER_TESTS;
$filename = $this->_pluralName($className).'_controller.test.php';
$filename = Inflector::underscore($className).'_controller.test.php';
$this->out("Baking unit test for $className...");
$Folder =& new Folder($path, true);

View file

@ -588,7 +588,7 @@ class ModelTask extends Shell {
$out .= "\n?>";
$path = MODEL_TESTS;
$filename = $this->_singularName($className).'.test.php';
$filename = Inflector::underscore($className).'.test.php';
$this->out("Baking unit test for $className...");
$Folder =& new Folder($path, true);