function EntityNormalizerTest::testDenormalizeWithNoEntityType
Tests the denormalize() method with no entity type provided in context.
@covers ::denormalize
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ EntityNormalizerTest.php, line 111
Class
- EntityNormalizerTest
- @coversDefaultClass \Drupal\serialization\Normalizer\EntityNormalizer[[api-linebreak]] @group serialization
Namespace
Drupal\Tests\serialization\Unit\NormalizerCode
public function testDenormalizeWithNoEntityType() : void {
$this->expectException(UnexpectedValueException::class);
$this->entityNormalizer
->denormalize([], ContentEntityBaseMockableClass::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.