diff --git a/tests/EventListener/AddFormatListenerTest.php b/tests/EventListener/AddFormatListenerTest.php index e4dca204c2e..7c1d891030b 100644 --- a/tests/EventListener/AddFormatListenerTest.php +++ b/tests/EventListener/AddFormatListenerTest.php @@ -32,10 +32,10 @@ public function testNoResourceClass() $eventProphecy->getRequest()->willReturn($request)->shouldBeCalled(); $event = $eventProphecy->reveal(); - $listener = new AddFormatListener(new Negotiator(), ['jsonld' => 'application/ld+json']); + $listener = new AddFormatListener(new Negotiator(), ['notexist' => 'application/vnd.notexist']); $listener->onKernelRequest($event); - $this->assertNull($request->getFormat('application/ld+json')); + $this->assertNull($request->getFormat('application/vnd.notexist')); } public function testSupportedRequestFormat()