@@ -240,9 +240,10 @@ public function testCompileFalseCompilationWithStepIncluded() {
240
240
241
241
$ controller ->expects ($ this ->at (0 ))->method ('get ' )->with ('codebender_builder.handler ' )
242
242
->willReturn ($ apiHandler );
243
- $ controller ->expects ($ this ->at (1 ))->method ('addUserIdProjectIdIfNotInRequest ' )->with (['files ' => []])
244
- ->willReturn (['files ' => []]);
245
- $ controller ->expects ($ this ->at (2 ))->method ('returnProvidedAndFetchedLibraries ' )->with ([])
243
+ $ controller ->expects ($ this ->at (1 ))->method ('addUserIdProjectIdIfNotInRequest ' )
244
+ ->with (['files ' => [], 'libraries ' => []])
245
+ ->willReturn (['files ' => [], 'libraries ' => []]);
246
+ $ controller ->expects ($ this ->at (2 ))->method ('returnProvidedAndFetchedLibraries ' )->with ([], [])
246
247
->willReturn (['libraries ' => []]);
247
248
248
249
$ container ->expects ($ this ->once ())->method ('getParameter ' )->with ('compiler ' )
@@ -251,7 +252,7 @@ public function testCompileFalseCompilationWithStepIncluded() {
251
252
->with ('http://compiler/url ' , '{"files":[],"libraries":[]} ' )
252
253
->willReturn ('{"success":false,"message":"someError","step":5} ' );
253
254
254
- $ functionResponse = $ function ->invoke ($ controller , ['files ' => []]);
255
+ $ functionResponse = $ function ->invoke ($ controller , ['files ' => [], ' libraries ' => [] ]);
255
256
256
257
$ this ->assertEquals ('{"success":false,"message":"someError","step":5,"additionalCode":[]} ' , $ functionResponse );
257
258
}
0 commit comments