function ResultTest::providerTestResultArea

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::providerTestResultArea()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::providerTestResultArea()
  3. 11.x core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::providerTestResultArea()

Data provider for testResultArea.

Return value

array

File

core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php, line 97

Class

ResultTest
@coversDefaultClass \Drupal\views\Plugin\views\area\Result[[api-linebreak]] @group views

Namespace

Drupal\Tests\views\Unit\Plugin\area

Code

public static function providerTestResultArea() {
  return [
    [
      '@label',
      'ResultTest',
    ],
    [
      '@start',
      '1',
    ],
    [
      '@start',
      '1',
      1,
    ],
    [
      '@end',
      '100',
    ],
    [
      '@end',
      '1',
      1,
    ],
    [
      '@total',
      '100',
    ],
    [
      '@total',
      '100',
      1,
    ],
    [
      '@per_page',
      '0',
    ],
    [
      '@per_page',
      '1',
      1,
    ],
    [
      '@current_page',
      '1',
    ],
    [
      '@current_page',
      '1',
      1,
    ],
    [
      '@current_record_count',
      '100',
    ],
    [
      '@current_record_count',
      '1',
      1,
    ],
    [
      '@page_count',
      '1',
    ],
    [
      '@page_count',
      '100',
      1,
    ],
    [
      '@start | @end | @total',
      '1 | 100 | 100',
    ],
    [
      '@start | @end | @total',
      '1 | 1 | 100',
      1,
    ],
  ];
}

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