function PagerManagerTest::providerTestGetMaxPagerElementId

Same name and namespace in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Pager/PagerManagerTest.php \Drupal\KernelTests\Core\Pager\PagerManagerTest::providerTestGetMaxPagerElementId()
  2. 9 core/tests/Drupal/KernelTests/Core/Pager/PagerManagerTest.php \Drupal\KernelTests\Core\Pager\PagerManagerTest::providerTestGetMaxPagerElementId()

Provides test cases for PagerManagerTest::testGetMaxPagerElementId().

Return value

array An array of test cases, each which the following values:

File

core/tests/Drupal/KernelTests/Core/Pager/PagerManagerTest.php, line 95

Class

PagerManagerTest
Tests Drupal\Core\Pager\PagerManager.

Namespace

Drupal\KernelTests\Core\Pager

Code

public static function providerTestGetMaxPagerElementId() : array {
  return [
    'no_pager' => [
      [],
      -1,
    ],
    'single_pager' => [
      [
        0,
      ],
      0,
    ],
    'multiple_pagers' => [
      [
        30,
        10,
        20,
      ],
      30,
    ],
  ];
}

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