function EntityNormalizerTest::testDenormalizeWithNoEntityType
Same name and namespace in other branches
- 10 core/modules/serialization/tests/src/Unit/Normalizer/EntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\EntityNormalizerTest::testDenormalizeWithNoEntityType()
- 9 core/modules/serialization/tests/src/Unit/Normalizer/EntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\EntityNormalizerTest::testDenormalizeWithNoEntityType()
- 8.9.x core/modules/serialization/tests/src/Unit/Normalizer/EntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\EntityNormalizerTest::testDenormalizeWithNoEntityType()
- main core/modules/serialization/tests/src/Unit/Normalizer/EntityNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\EntityNormalizerTest::testDenormalizeWithNoEntityType()
Tests the denormalize() method with no entity type provided in context.
File
-
core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ EntityNormalizerTest.php, line 110
Class
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.