Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding libs dir generation to PluginTask. Baked plugins now come with…

… a libs dir.
  • Loading branch information...
commit 1e7c2bbfdee15cf5871a3a5d2f3a397af3d5fe8d 1 parent 6f2ec8d
@markstory markstory authored
View
1  cake/console/libs/tasks/plugin.php
@@ -145,6 +145,7 @@ function bake($plugin) {
'models' . DS . 'behaviors',
'models' . DS . 'datasources',
'controllers' . DS . 'components',
+ 'libs',
'views' . DS . 'helpers',
'tests' . DS . 'cases' . DS . 'components',
'tests' . DS . 'cases' . DS . 'helpers',
View
1  cake/tests/cases/console/libs/tasks/plugin.test.php
@@ -183,6 +183,7 @@ function testBakeFoldersAndFiles() {
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells'), 'No vendors shells dir %s');
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks'), 'No vendors shells tasks dir %s');
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'shells' . DS . 'tasks' . DS . 'empty'), 'No empty file %s');
+ $this->assertTrue(is_dir($path . DS . 'libs'), 'No libs dir %s');
$file = $path . DS . 'bake_test_plugin_app_controller.php';
$this->Task->expectAt(0, 'createFile', array($file, '*'), 'No AppController %s');
Please sign in to comment.
Something went wrong with that request. Please try again.