mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 20:46:24 +00:00
Added missing folders to plugin baking task, updated test
This commit is contained in:
parent
9d53a1e9ce
commit
6e1b8f3ce8
2 changed files with 26 additions and 10 deletions
|
@ -108,18 +108,26 @@ class PluginTask extends AppShell {
|
||||||
$Folder = new Folder($this->path . $plugin);
|
$Folder = new Folder($this->path . $plugin);
|
||||||
$directories = array(
|
$directories = array(
|
||||||
'Config' . DS . 'Schema',
|
'Config' . DS . 'Schema',
|
||||||
'Model' . DS . 'Behavior',
|
|
||||||
'Model' . DS . 'Datasource',
|
|
||||||
'Console' . DS . 'Command' . DS . 'Task',
|
'Console' . DS . 'Command' . DS . 'Task',
|
||||||
|
'Console' . DS . 'Templates',
|
||||||
'Controller' . DS . 'Component',
|
'Controller' . DS . 'Component',
|
||||||
'Lib',
|
'Lib',
|
||||||
'View' . DS . 'Helper',
|
'Locale' . DS . 'eng' . DS . 'LC_MESSAGES',
|
||||||
|
'Model' . DS . 'Behavior',
|
||||||
|
'Model' . DS . 'Datasource',
|
||||||
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
|
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
|
||||||
'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper',
|
'Test' . DS . 'Case' . DS . 'Lib',
|
||||||
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
|
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
|
||||||
|
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Datasource',
|
||||||
|
'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper',
|
||||||
'Test' . DS . 'Fixture',
|
'Test' . DS . 'Fixture',
|
||||||
'Vendor',
|
'Vendor',
|
||||||
'webroot'
|
'View' . DS . 'Elements',
|
||||||
|
'View' . DS . 'Helper',
|
||||||
|
'View' . DS . 'Layout',
|
||||||
|
'webroot' . DS . 'css',
|
||||||
|
'webroot' . DS . 'js',
|
||||||
|
'webroot' . DS . 'img',
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($directories as $directory) {
|
foreach ($directories as $directory) {
|
||||||
|
|
|
@ -100,18 +100,26 @@ class PluginTaskTest extends CakeTestCase {
|
||||||
|
|
||||||
$directories = array(
|
$directories = array(
|
||||||
'Config' . DS . 'Schema',
|
'Config' . DS . 'Schema',
|
||||||
'Model' . DS . 'Behavior',
|
|
||||||
'Model' . DS . 'Datasource',
|
|
||||||
'Console' . DS . 'Command' . DS . 'Task',
|
'Console' . DS . 'Command' . DS . 'Task',
|
||||||
|
'Console' . DS . 'Templates',
|
||||||
'Controller' . DS . 'Component',
|
'Controller' . DS . 'Component',
|
||||||
'Lib',
|
'Lib',
|
||||||
'View' . DS . 'Helper',
|
'Locale' . DS . 'eng' . DS . 'LC_MESSAGES',
|
||||||
|
'Model' . DS . 'Behavior',
|
||||||
|
'Model' . DS . 'Datasource',
|
||||||
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
|
'Test' . DS . 'Case' . DS . 'Controller' . DS . 'Component',
|
||||||
'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper',
|
'Test' . DS . 'Case' . DS . 'Lib',
|
||||||
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
|
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Behavior',
|
||||||
|
'Test' . DS . 'Case' . DS . 'Model' . DS . 'Datasource',
|
||||||
|
'Test' . DS . 'Case' . DS . 'View' . DS . 'Helper',
|
||||||
'Test' . DS . 'Fixture',
|
'Test' . DS . 'Fixture',
|
||||||
'Vendor',
|
'Vendor',
|
||||||
'webroot'
|
'View' . DS . 'Elements',
|
||||||
|
'View' . DS . 'Helper',
|
||||||
|
'View' . DS . 'Layout',
|
||||||
|
'webroot' . DS . 'css',
|
||||||
|
'webroot' . DS . 'js',
|
||||||
|
'webroot' . DS . 'img',
|
||||||
);
|
);
|
||||||
foreach ($directories as $dir) {
|
foreach ($directories as $dir) {
|
||||||
$this->assertTrue(is_dir($path . DS . $dir), 'Missing directory for ' . $dir);
|
$this->assertTrue(is_dir($path . DS . $dir), 'Missing directory for ' . $dir);
|
||||||
|
|
Loading…
Add table
Reference in a new issue