function SortTest::badParameterProvider

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::badParameterProvider()
  2. 8.9.x 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 96

Class

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

Namespace

Drupal\Tests\jsonapi\Unit\Query

Code

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

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