Skip to content

Commit

Permalink
Adding config/sql to plugin baking.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 17, 2009
1 parent cbb568b commit 2e3a311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cake/console/libs/tasks/plugin.php
Expand Up @@ -143,6 +143,7 @@ function bake($plugin) {

$Folder = new Folder($this->path . $pluginPath);
$directories = array(
'config' . DS . 'sql',
'models' . DS . 'behaviors',
'controllers' . DS . 'components',
'views' . DS . 'helpers',
Expand Down
2 changes: 2 additions & 0 deletions cake/tests/cases/console/libs/tasks/plugin.test.php
Expand Up @@ -113,6 +113,8 @@ function testBakeFoldersAndFiles() {

$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');
Expand Down

0 comments on commit 2e3a311

Please sign in to comment.