diff --git a/cake/console/libs/tasks/plugin.php b/cake/console/libs/tasks/plugin.php index 76803849d..d1ca64494 100644 --- a/cake/console/libs/tasks/plugin.php +++ b/cake/console/libs/tasks/plugin.php @@ -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', diff --git a/cake/tests/cases/console/libs/tasks/plugin.test.php b/cake/tests/cases/console/libs/tasks/plugin.test.php index 06973bae0..665d6caa1 100644 --- a/cake/tests/cases/console/libs/tasks/plugin.test.php +++ b/cake/tests/cases/console/libs/tasks/plugin.test.php @@ -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');