You are here

public function LinkManagerTest::testGetPagerLinksError in JSON:API 8

Test errors.

@covers ::getPagerLinks @dataProvider getPagerLinksErrorProvider

File

tests/src/Unit/LinkManager/LinkManagerTest.php, line 158

Class

LinkManagerTest
@coversDefaultClass \Drupal\jsonapi\LinkManager\LinkManager @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\LinkManager

Code

public function testGetPagerLinksError($offset, $size, $has_next_page, $total, $include_count, array $pages) {
  $this
    ->setExpectedException(BadRequestHttpException::class);
  $this
    ->testGetPagerLinks($offset, $size, $has_next_page, $total, $include_count, $pages);
}