public function testHandle() { $request =
$this->
prophesize(Request::
class);
// Default empty format list should not set any formats.
$request->
setFormat()->
shouldNotBeCalled();
// Request format will be set with default format.
$request->
setRequestFormat()->
shouldNotBeCalled();
// Some getContentType calls we don't really care about but have to mock.
$request_data =
$this->
prophesize(ParameterBag::
class);
$request_data->
get('ajax_iframe_upload', FALSE
)->
willReturn(FALSE
)->
shouldBeCalled();
$request_mock =
$request->
reveal();
$request_mock->query =
new ParameterBag([]);
$request_mock->request =
$request_data->
reveal();
// Calling kernel app with default arguments.
$this->app->
handle($request_mock, HttpKernelInterface::MAIN_REQUEST, TRUE
) ->
shouldBeCalled()