mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding libs dir generation to PluginTask. Baked plugins now come with a libs dir.
This commit is contained in:
parent
6f2ec8d8d2
commit
1e7c2bbfde
2 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,7 @@ class PluginTask extends Shell {
|
|||
'models' . DS . 'behaviors',
|
||||
'models' . DS . 'datasources',
|
||||
'controllers' . DS . 'components',
|
||||
'libs',
|
||||
'views' . DS . 'helpers',
|
||||
'tests' . DS . 'cases' . DS . 'components',
|
||||
'tests' . DS . 'cases' . DS . 'helpers',
|
||||
|
|
|
@ -183,6 +183,7 @@ class PluginTaskTest extends CakeTestCase {
|
|||
$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');
|
||||
|
|
Loading…
Reference in a new issue