From 2e3a311b0d60d23ab107aa890fb328678313d7dc Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 16 Jul 2009 21:34:14 -0400 Subject: [PATCH] Adding config/sql to plugin baking. --- cake/console/libs/tasks/plugin.php | 1 + cake/tests/cases/console/libs/tasks/plugin.test.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cake/console/libs/tasks/plugin.php b/cake/console/libs/tasks/plugin.php index 76803849d3c..d1ca64494fb 100644 --- a/cake/console/libs/tasks/plugin.php +++ b/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', diff --git a/cake/tests/cases/console/libs/tasks/plugin.test.php b/cake/tests/cases/console/libs/tasks/plugin.test.php index 06973bae0ff..665d6caa166 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 @@ 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');