You are here

public function JsonApiSpecTest::testIsValidCustomQueryParameter in JSON:API 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/JsonApiSpecTest.php \Drupal\Tests\jsonapi\Unit\JsonApiSpecTest::testIsValidCustomQueryParameter()

Provides test cases.

@dataProvider providerTestIsValidCustomQueryParameter @covers ::isValidCustomQueryParameter @covers ::isValidMemberName

File

tests/src/Unit/JsonApiSpecTest.php, line 103

Class

JsonApiSpecTest
@coversDefaultClass \Drupal\jsonapi\JsonApiSpec @group jsonapi

Namespace

Drupal\Tests\jsonapi\Unit

Code

public function testIsValidCustomQueryParameter($custom_query_parameter, $expected) {
  $this
    ->assertSame($expected, JsonApiSpec::isValidCustomQueryParameter($custom_query_parameter));
}