You are here

public function FieldNormalizerDenormalizeExceptionsUnitTest::testFieldNormalizerDenormalizeExceptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Unit

Code

public function testFieldNormalizerDenormalizeExceptions($context) {
  $field_item_normalizer = new FieldNormalizer();
  $data = array();
  $class = array();
  $field_item_normalizer
    ->denormalize($data, $class, NULL, $context);
}