/**
* Tests the getContentType() method with AJAX iframe upload.
*
* @covers ::getContentType
*/
public function testAjaxIframeUpload() { $request =
new Request();
$request->request->
set('ajax_iframe_upload', '1'
);
$this->
assertSame('iframeupload',
$this->contentNegotiation->
getContentType($request));
} /**
* Tests the specifying a format via query parameters gets used.
*
* @covers ::getContentType
*/
public function testFormatViaQueryParameter() { $request =
new Request();
$request->query->
set('_format', 'bob'
);