Adding config/sql to plugin baking.

This commit is contained in:
mark_story 2009-07-16 21:34:14 -04:00
parent cbb568b3c7
commit 2e3a311b0d
2 changed files with 3 additions and 0 deletions

View file

@ -143,6 +143,7 @@ class PluginTask extends Shell {
$Folder = new Folder($this->path . $pluginPath);
$directories = array(
'config' . DS . 'sql',
'models' . DS . 'behaviors',
'controllers' . DS . 'components',
'views' . DS . 'helpers',

View file

@ -113,6 +113,8 @@ class PluginTaskTest extends CakeTestCase {
$path = $this->Task->path . 'bake_test_plugin';
$this->assertTrue(is_dir($path), 'No plugin dir %s');
$this->assertTrue(is_dir($path . DS . 'config'), 'No config dir %s');
$this->assertTrue(is_dir($path . DS . 'config' . DS . 'sql'), 'No config dir %s');
$this->assertTrue(is_dir($path . DS . 'controllers'), 'No controllers dir %s');
$this->assertTrue(is_dir($path . DS . 'controllers' . DS .'components'), 'No components dir %s');
$this->assertTrue(is_dir($path . DS . 'models'), 'No models dir %s');