fix tests (wip)

This commit is contained in:
2021-12-08 11:35:00 +01:00
parent 62dabbe1e7
commit f1b1771d6b
5 changed files with 5 additions and 15 deletions

View File

@@ -75,7 +75,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
$user = new User();
$user->setUsername('User Test');
$normalized = $this->normalizer->normalize($user, 'docgen', [AbstractNormalizer::GROUPS => ['docgen:read']]);
$normalized = $this->normalizer->normalize($user, 'docgen', [AbstractNormalizer::GROUPS => ['docgen:read'], 'docgen:expects' => User::class]);
$expected = [
'label' => 'User Test',
'email' => '',