Permalink
Browse files

Adding config/sql to plugin baking.

  • Loading branch information...
1 parent cbb568b commit 2e3a311b0d60d23ab107aa890fb328678313d7dc @markstory markstory committed Jul 17, 2009
Showing with 3 additions and 0 deletions.
  1. +1 −0 cake/console/libs/tasks/plugin.php
  2. +2 −0 cake/tests/cases/console/libs/tasks/plugin.test.php
@@ -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',
@@ -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');

0 comments on commit 2e3a311

Please sign in to comment.