public function FieldNormalizerDenormalizeExceptionsUnitTest::testFieldNormalizerDenormalizeExceptions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/hal/tests/src/Unit/FieldNormalizerDenormalizeExceptionsUnitTest.php \Drupal\Tests\hal\Unit\FieldNormalizerDenormalizeExceptionsUnitTest::testFieldNormalizerDenormalizeExceptions()
Tests that the FieldNormalizer::denormalize() throws proper exceptions.
@dataProvider providerNormalizerDenormalizeExceptions @expectedException \Symfony\Component\Serializer\Exception\InvalidArgumentException
Parameters
array $context: Context for FieldNormalizer::denormalize().
File
- core/
modules/ hal/ tests/ src/ Unit/ FieldNormalizerDenormalizeExceptionsUnitTest.php, line 27 - Contains \Drupal\Tests\hal\Unit\FieldNormalizerDenormalizeExceptionsUnitTest.
Class
- FieldNormalizerDenormalizeExceptionsUnitTest
- @coversDefaultClass \Drupal\hal\Normalizer\FieldNormalizer @group hal
Namespace
Drupal\Tests\hal\UnitCode
public function testFieldNormalizerDenormalizeExceptions($context) {
$field_item_normalizer = new FieldNormalizer();
$data = array();
$class = array();
$field_item_normalizer
->denormalize($data, $class, NULL, $context);
}