Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 29, 2023
1 parent ac73ab2 commit 39a8568
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/Normalizer/AbstractObjectNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,11 @@ public function testNormalizeWithIgnoreAttributeAndPrivateProperties()
public function testNormalizeBasedOnAllowedAttributes()
{
$normalizer = new class() extends AbstractObjectNormalizer {
public function getSupportedTypes(?string $format): array
{
return ['*' => false];
}

protected function getAllowedAttributes($classOrObject, array $context, bool $attributesAsString = false): array
{
return ['foo'];
Expand Down

0 comments on commit 39a8568

Please sign in to comment.