Skip to content

Commit

Permalink
test: add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-averty committed Dec 20, 2023
1 parent 8268486 commit d82305f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ public function testItSupportsDecoratedSupport(): void
$this->assertTrue($this->normalizer->supportsNormalization('foo', 'bar'));
}

public function testItSupportsDecoratedType(): void
{
$this->normalizerMock->expects($this->once())->method('getSupportedTypes')->with('foo')->willReturn(['bar', 'baz']);
$this->assertSame(['bar', 'baz'], $this->normalizer->getSupportedTypes('foo'));
}

public function testItDecoratesNormalizedData(): void
{
$this->routerMock->expects($this->once())->method('getRouteCollection')->willReturn($this->routeCollectionMock);
Expand Down

0 comments on commit d82305f

Please sign in to comment.