@@ -240,9 +240,10 @@ public function testCompileFalseCompilationWithStepIncluded() {
240240
241241 $ controller ->expects ($ this ->at (0 ))->method ('get ' )->with ('codebender_builder.handler ' )
242242 ->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 ([], [])
246247 ->willReturn (['libraries ' => []]);
247248
248249 $ container ->expects ($ this ->once ())->method ('getParameter ' )->with ('compiler ' )
@@ -251,7 +252,7 @@ public function testCompileFalseCompilationWithStepIncluded() {
251252 ->with ('http://compiler/url ' , '{"files":[],"libraries":[]} ' )
252253 ->willReturn ('{"success":false,"message":"someError","step":5} ' );
253254
254- $ functionResponse = $ function ->invoke ($ controller , ['files ' => []]);
255+ $ functionResponse = $ function ->invoke ($ controller , ['files ' => [], ' libraries ' => [] ]);
255256
256257 $ this ->assertEquals ('{"success":false,"message":"someError","step":5,"additionalCode":[]} ' , $ functionResponse );
257258 }
0 commit comments