@@ -15,14 +15,14 @@ class GeneratorModuleCommandTest extends GenerateCommandTest
1515 */
1616 public function testInteractive ($ options , $ expected , $ input )
1717 {
18- list ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ dependencies , $ test ) = $ expected ;
18+ list ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ composer , $ dependencies , $ test ) = $ expected ;
1919
2020 $ generator = $ this ->getGenerator ();
2121
2222 $ generator
2323 ->expects ($ this ->once ())
2424 ->method ('generate ' )
25- ->with ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ dependencies , $ test );
25+ ->with ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ composer , $ dependencies , $ test );
2626
2727 $ command = $ this ->getCommand ($ generator , $ input );
2828
@@ -38,7 +38,7 @@ public function getInteractiveData()
3838 // case one basic options
3939 [
4040 [],
41- ['foo ' , 'foo ' , $ dir , 'My Awesome Module ' , '8.x ' , 'Other ' , false , [], false ],
41+ ['foo ' , 'foo ' , $ dir , 'My Awesome Module ' , '8.x ' , 'Other ' , false , false , [], false ],
4242 "foo \nfoo \n$ dir \n"
4343 ],
4444 ];
@@ -49,14 +49,14 @@ public function getInteractiveData()
4949 */
5050 public function testNoInteractive ($ options , $ expected )
5151 {
52- list ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ dependencies , $ test ) = $ expected ;
52+ list ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ composer , $ dependencies , $ test ) = $ expected ;
5353
5454 $ generator = $ this ->getGenerator ();
5555
5656 $ generator
5757 ->expects ($ this ->once ())
5858 ->method ('generate ' )
59- ->with ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ dependencies , $ test );
59+ ->with ($ module , $ machine_name , $ dir , $ description , $ core , $ package , $ controller , $ composer , $ dependencies , $ test );
6060
6161 $ cmd = new CommandTester ($ this ->getCommand ($ generator , '' ));
6262 $ cmd ->execute ($ options , ['interactive ' => false ]);
@@ -75,10 +75,11 @@ public function getNoInteractiveData()
7575 '--description ' => 'My Awesome Module ' ,
7676 '--core ' => '8.x ' ,
7777 '--package ' => 'Other ' ,
78+ '--composer ' => false ,
7879 '--controller ' => true ,
7980 '--test ' => true
8081 ],
81- ["foo " , "foo " , $ dir , "My Awesome Module " , '8.x ' , 'Other ' , true , [], true ],
82+ ["foo " , "foo " , $ dir , "My Awesome Module " , '8.x ' , 'Other ' , true , false , [], true ],
8283 ],
8384 [
8485 [
@@ -88,10 +89,11 @@ public function getNoInteractiveData()
8889 '--description ' => 'My Awesome Module ' ,
8990 '--core ' => '8.x ' ,
9091 '--package ' => 'Other ' ,
92+ '--composer ' => false ,
9193 '--controller ' => true ,
9294 '--test ' => true
9395 ],
94- ["foo " , 'foo ' , $ dir , "My Awesome Module " , '8.x ' , 'Other ' , true , [], true ],
96+ ["foo " , 'foo ' , $ dir , "My Awesome Module " , '8.x ' , 'Other ' , true , false , [], true ],
9597 ]
9698 ];
9799 }
0 commit comments