We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c24b71 commit 9b512eaCopy full SHA for 9b512ea
tests/EventListener/AddFormatListenerTest.php
@@ -32,10 +32,10 @@ public function testNoResourceClass()
32
$eventProphecy->getRequest()->willReturn($request)->shouldBeCalled();
33
$event = $eventProphecy->reveal();
34
35
- $listener = new AddFormatListener(new Negotiator(), ['jsonld' => 'application/ld+json']);
+ $listener = new AddFormatListener(new Negotiator(), ['notexist' => 'application/vnd.notexist']);
36
$listener->onKernelRequest($event);
37
38
- $this->assertNull($request->getFormat('application/ld+json'));
+ $this->assertNull($request->getFormat('application/vnd.notexist'));
39
}
40
41
public function testSupportedRequestFormat()
0 commit comments