function OffsetPageTest::testCreateFromQueryParameterFail

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::testCreateFromQueryParameterFail()
  2. 8.9.x core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::testCreateFromQueryParameterFail()
  3. 11.x 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 62

Class

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

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.