Skip to content

Commit

Permalink
Updating PluginTask to create webroot dir and no longer create vendor…
Browse files Browse the repository at this point in the history
…s/css, vendors/js and vendors/img
  • Loading branch information
markstory committed Nov 26, 2009
1 parent 10119f5 commit dd4fbba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
7 changes: 3 additions & 4 deletions cake/console/libs/tasks/plugin.php
Expand Up @@ -153,10 +153,9 @@ function bake($plugin) {
'tests' . DS . 'cases' . DS . 'models',
'tests' . DS . 'groups',
'tests' . DS . 'fixtures',
'vendors' . DS . 'img',
'vendors' . DS . 'js',
'vendors' . DS . 'css',
'vendors' . DS . 'shells' . DS . 'tasks'
'vendors',
'vendors' . DS . 'shells' . DS . 'tasks',
'webroot'
);

foreach ($directories as $directory) {
Expand Down
11 changes: 2 additions & 9 deletions cake/tests/cases/console/libs/tasks/plugin.test.php
Expand Up @@ -171,19 +171,12 @@ function testBakeFoldersAndFiles() {
$this->assertTrue(file_exists($path . DS . 'tests' . DS . 'fixtures' . DS . 'empty'), 'No empty file %s');

$this->assertTrue(is_dir($path . DS . 'vendors'), 'No vendors dir %s');
$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'css'), 'No vendors css dir %s');
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'css' . DS . 'empty'), 'No empty file %s');

$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'js'), 'No vendors js dir %s');
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'js' . DS . 'empty'), 'No empty file %s');

$this->assertTrue(is_dir($path . DS . 'vendors' . DS . 'img'), 'No vendors img dir %s');
$this->assertTrue(file_exists($path . DS . 'vendors' . DS . 'img' . DS . 'empty'), 'No empty file %s');


$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');
$this->assertTrue(is_dir($path . DS . 'webroot'), 'No webroot dir %s');

$file = $path . DS . 'bake_test_plugin_app_controller.php';
$this->Task->expectAt(0, 'createFile', array($file, '*'), 'No AppController %s');
Expand Down

0 comments on commit dd4fbba

Please sign in to comment.