take setIgnoredAttributes() deprecation into account
This commit is contained in:
parent
ec41d76624
commit
4134be127a
@ -497,7 +497,8 @@ class ObjectNormalizerTest extends TestCase
|
||||
$this->normalizer->normalize($obj, 'any')
|
||||
);
|
||||
|
||||
$this->normalizer->setIgnoredAttributes(['foo', 'baz', 'camelCase', 'object']);
|
||||
$ignoredAttributes = ['foo', 'baz', 'camelCase', 'object'];
|
||||
$legacy ? $this->normalizer->setIgnoredAttributes($ignoredAttributes) : $this->createNormalizer([ObjectNormalizer::IGNORED_ATTRIBUTES => $ignoredAttributes]);
|
||||
|
||||
$this->assertEquals(
|
||||
[
|
||||
|
Reference in New Issue
Block a user