function ResultTest::providerTestResultArea

Same name and namespace in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::providerTestResultArea()
  2. 10 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 93

Class

ResultTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21views%21area%21Result.php/class/Result/9" title="Views area handler to display some configurable result summary." class="local">\Drupal\views\Plugin\views\area\Result</a> @group views

Namespace

Drupal\Tests\views\Unit\Plugin\area

Code

public 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.