From 9b512ea07eb55b2c465dfaea47e7ccad7aea77ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 9 Jan 2018 00:12:09 +0100 Subject: [PATCH] Fix unit tests --- tests/EventListener/AddFormatListenerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()