You are here

public function OffsetPageTest::testCreateFromQueryParameterFail in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::testCreateFromQueryParameterFail()
  2. 9 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::testCreateFromQueryParameterFail()

@covers ::createFromQueryParameter

File

core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php, line 60

Class

OffsetPageTest
@coversDefaultClass \Drupal\jsonapi\Query\OffsetPage @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

public function testCreateFromQueryParameterFail() {
  $this
    ->expectException(BadRequestHttpException::class);
  OffsetPage::createFromQueryParameter('lorem');
}