Skip to content

Commit

Permalink
Add Console/Templates and webroot/files to bake skel. Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
majna committed Feb 7, 2012
1 parent 454f383 commit b61f46b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
Empty file.
Empty file.
44 changes: 38 additions & 6 deletions lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,39 @@ public function testBake() {
'Config' . DS . 'Schema',
'Console',
'Console' . DS . 'Command',
'Console' . DS . 'Templates',
'Console' . DS . 'Command' . DS . 'Task',
'Controller',
'Controller' . DS. 'Component',
'Locale',
'Model',
'View',
'View' . DS . 'Helper',
'Model' . DS. 'Behavior',
'Model' . DS. 'Datasource',
'Plugin',
'Test',
'Test' . DS . 'Case',
'Test' . DS . 'Case' . DS . 'Controller',
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
'Test' . DS . 'Case' . DS . 'Model',
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
'Test' . DS . 'Fixture',
'Vendor',
'View',
'View' . DS . 'Helper',
'tmp',
'tmp' . DS . 'cache',
'tmp' . DS . 'cache' . DS . 'models',
'tmp' . DS . 'cache' . DS . 'persistent',
'tmp' . DS . 'cache' . DS . 'views',
'tmp' . DS . 'logs',
'tmp' . DS . 'sessions',
'tmp' . DS . 'tests',
'webroot',
'webroot' . DS . 'js',
'webroot' . DS . 'css',
'webroot' . DS . 'files',
'webroot' . DS . 'img',
'webroot' . DS . 'js',

);
foreach ($dirs as $dir) {
$this->assertTrue(is_dir($path . DS . $dir), 'Missing ' . $dir);
Expand Down Expand Up @@ -169,14 +189,26 @@ public function testBakeEmptyFlag() {
$empty = array(
'Console' . DS . 'Command' . DS . 'Task' => 'empty',
'Controller' . DS . 'Component' => 'empty',
'Lib' => 'empty',
'Model' . DS . 'Behavior' => 'empty',
'View' . DS . 'Errors' => 'empty',
'View' . DS . 'Scaffolds' => 'empty',
'Model' . DS . 'Datasource' => 'empty',
'Plugin' => 'empty',
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior' => 'empty',
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component' => 'empty',
'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper' => 'empty',
'Test' . DS . 'Fixture' => 'empty',
'webroot' . DS . 'js' => 'empty'
'Vendor' => 'empty',
'View' . DS . 'Elements' => 'empty',
'View' . DS . 'Errors' => 'empty',
'View' . DS . 'Scaffolds' => 'empty',
'tmp' . DS . 'cache' . DS . 'models' => 'empty',
'tmp' . DS . 'cache' . DS . 'persistent' => 'empty',
'tmp' . DS . 'cache' . DS . 'views' => 'empty',
'tmp' . DS . 'logs' => 'empty',
'tmp' . DS . 'sessions' => 'empty',
'tmp' . DS . 'tests' => 'empty',
'webroot' . DS . 'js' => 'empty',
'webroot' . DS . 'files' => 'empty'
);

foreach ($empty as $dir => $file) {
Expand Down

0 comments on commit b61f46b

Please sign in to comment.