FieldNormalizerDenormalizeExceptionsUnitTest.php in Drupal 8
File
core/modules/hal/tests/src/Unit/FieldNormalizerDenormalizeExceptionsUnitTest.php
View source
<?php
namespace Drupal\Tests\hal\Unit;
use Drupal\hal\Normalizer\FieldNormalizer;
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
class FieldNormalizerDenormalizeExceptionsUnitTest extends NormalizerDenormalizeExceptionsUnitTestBase {
public function testFieldNormalizerDenormalizeExceptions($context) {
$field_item_normalizer = new FieldNormalizer();
$data = [];
$class = [];
$this
->expectException(InvalidArgumentException::class);
$field_item_normalizer
->denormalize($data, $class, NULL, $context);
}
}