function OffsetPageTest::parameterProvider

Same name and namespace in other branches
  1. 9 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::parameterProvider()
  2. 10 core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::parameterProvider()
  3. 11.x core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php \Drupal\Tests\jsonapi\Unit\Query\OffsetPageTest::parameterProvider()

Data provider for testCreateFromQueryParameter.

File

core/modules/jsonapi/tests/src/Unit/Query/OffsetPageTest.php, line 47

Class

OffsetPageTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21jsonapi%21src%21Query%21OffsetPage.php/class/OffsetPage/8.9.x" title="Value object for containing the requested offset and page parameters." class="local">\Drupal\jsonapi\Query\OffsetPage</a> @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

public function parameterProvider() {
    return [
        [
            [
                'offset' => 12,
                'limit' => 20,
            ],
            [
                'offset' => 12,
                'limit' => 20,
            ],
        ],
        [
            [
                'offset' => 12,
                'limit' => 60,
            ],
            [
                'offset' => 12,
                'limit' => 50,
            ],
        ],
        [
            [
                'offset' => 12,
            ],
            [
                'offset' => 12,
                'limit' => 50,
            ],
        ],
        [
            [
                'offset' => 0,
            ],
            [
                'offset' => 0,
                'limit' => 50,
            ],
        ],
        [
            [],
            [
                'offset' => 0,
                'limit' => 50,
            ],
        ],
    ];
}

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