function SortTest::badParameterProvider

Same name in other branches
  1. 8.9.x core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::badParameterProvider()
  2. 10 core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::badParameterProvider()
  3. 11.x core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::badParameterProvider()

Data provider for testCreateFromQueryParameterFail.

File

core/modules/jsonapi/tests/src/Unit/Query/SortTest.php, line 94

Class

SortTest
@coversDefaultClass \Drupal\jsonapi\Query\Sort @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

public function badParameterProvider() {
    return [
        [
            [
                [
                    'lorem',
                ],
            ],
        ],
        [
            '',
        ],
    ];
}

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