Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding config/sql to plugin baking.

  • Loading branch information...
commit 2e3a311b0d60d23ab107aa890fb328678313d7dc 1 parent cbb568b
@markstory markstory authored
View
1  cake/console/libs/tasks/plugin.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',
View
2  cake/tests/cases/console/libs/tasks/plugin.test.php
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.