Skip to content

Commit c2f13dc

Browse files
authored
Merge pull request #1634 from dunglas/fix-tests
Fix unit tests
2 parents 7d0e831 + 9b512ea commit c2f13dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/EventListener/AddFormatListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public function testNoResourceClass()
3232
$eventProphecy->getRequest()->willReturn($request)->shouldBeCalled();
3333
$event = $eventProphecy->reveal();
3434

35-
$listener = new AddFormatListener(new Negotiator(), ['jsonld' => 'application/ld+json']);
35+
$listener = new AddFormatListener(new Negotiator(), ['notexist' => 'application/vnd.notexist']);
3636
$listener->onKernelRequest($event);
3737

38-
$this->assertNull($request->getFormat('application/ld+json'));
38+
$this->assertNull($request->getFormat('application/vnd.notexist'));
3939
}
4040

4141
public function testSupportedRequestFormat()

0 commit comments

Comments
 (0)