You are here

public function OffsetPageNormalizerTest::testDenormalizeFail in JSON:API 8

@covers ::denormalize

File

tests/src/Kernel/Normalizer/OffsetPageNormalizerTest.php, line 69

Class

OffsetPageNormalizerTest
@coversDefaultClass \Drupal\jsonapi\Normalizer\OffsetPageNormalizer @group jsonapi @group jsonapi_normalizers @group legacy

Namespace

Drupal\Tests\jsonapi\Kernel\Normalizer

Code

public function testDenormalizeFail() {
  $this
    ->setExpectedException(BadRequestHttpException::class);
  $this->normalizer
    ->denormalize('lorem', OffsetPage::class);
}