public function SortNormalizerTest::testDenormalizeFail in JSON:API 8
@covers ::denormalize @dataProvider denormalizeFailProvider
File
- tests/
src/ Kernel/ Normalizer/ SortNormalizerTest.php, line 94
Class
- SortNormalizerTest
- @coversDefaultClass \Drupal\jsonapi\Normalizer\SortNormalizer @group jsonapi @group jsonapi_normalizers @group legacy
Namespace
Drupal\Tests\jsonapi\Kernel\NormalizerCode
public function testDenormalizeFail($input) {
$this
->setExpectedException(BadRequestHttpException::class);
$sort = $this->normalizer
->denormalize($input, Sort::class);
}