public function EntityConditionNormalizerTest::testDenormalizeValidation in JSON:API 8
@covers ::denormalize @dataProvider denormalizeValidationProvider
File
- tests/
src/ Kernel/ Normalizer/ EntityConditionNormalizerTest.php, line 79
Class
- EntityConditionNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\EntityConditionNormalizer @group jsonapi @group jsonapi_normalizers @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\NormalizerCode
public function testDenormalizeValidation($input, $exception) {
if ($exception) {
$this
->setExpectedException(get_class($exception), $exception
->getMessage());
}
$this->normalizer
->denormalize($input, EntityCondition::class);
}