File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/TestCase/Console/Command/Task Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public function bake($plugin) {
139
139
$ out .= "use App \\Controller \\AppController as BaseController; \n\n" ;
140
140
$ out .= "class AppController extends BaseController { \n\n" ;
141
141
$ out .= "} \n" ;
142
- $ this ->createFile ($ this ->path . $ plugin . DS . 'Controller ' . DS . $ controllerFileName , $ out );
142
+ $ this ->createFile ($ this ->path . $ plugin . DS . $ classBase . DS . 'Controller ' . DS . $ controllerFileName , $ out );
143
143
144
144
$ this ->_modifyBootstrap ($ plugin );
145
145
$ this ->_generatePhpunitXml ($ plugin , $ this ->path );
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function testBakeFoldersAndFiles() {
75
75
76
76
$ path = $ this ->Task ->path . 'BakeTestPlugin ' ;
77
77
78
- $ file = $ path . DS . 'Controller ' . DS . 'AppController.php ' ;
78
+ $ file = $ path . DS . 'src ' . DS . ' Controller ' . DS . 'AppController.php ' ;
79
79
$ this ->Task ->expects ($ this ->at (1 ))->method ('createFile ' )
80
80
->with ($ file , $ this ->stringContains ('namespace BakeTestPlugin\Controller; ' ));
81
81
@@ -140,7 +140,7 @@ public function testExecuteWithOneArg() {
140
140
->will ($ this ->returnValue ('y ' ));
141
141
142
142
$ path = $ this ->Task ->path . 'BakeTestPlugin ' ;
143
- $ file = $ path . DS . 'Controller ' . DS . 'AppController.php ' ;
143
+ $ file = $ path . DS . 'src ' . DS . ' Controller ' . DS . 'AppController.php ' ;
144
144
$ this ->Task ->expects ($ this ->at (1 ))->method ('createFile ' )
145
145
->with ($ file , $ this ->stringContains ('class AppController extends BaseController { ' ));
146
146
You can’t perform that action at this time.
0 commit comments