function JsonApiSpecTest::testIsValidCustomQueryParameter
Same name and namespace in other branches
- 9 core/modules/jsonapi/tests/src/Unit/JsonApiSpecTest.php \Drupal\Tests\jsonapi\Unit\JsonApiSpecTest::testIsValidCustomQueryParameter()
- 8.9.x core/modules/jsonapi/tests/src/Unit/JsonApiSpecTest.php \Drupal\Tests\jsonapi\Unit\JsonApiSpecTest::testIsValidCustomQueryParameter()
- 10 core/modules/jsonapi/tests/src/Unit/JsonApiSpecTest.php \Drupal\Tests\jsonapi\Unit\JsonApiSpecTest::testIsValidCustomQueryParameter()
Provides test cases.
@dataProvider providerTestIsValidCustomQueryParameter @covers ::isValidCustomQueryParameter @covers ::isValidMemberName
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ JsonApiSpecTest.php, line 107
Class
- JsonApiSpecTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21jsonapi%21src%21JsonApiSpec.php/class/JsonApiSpec/11.x" title="Defines constants used for compliance with the JSON:API specification." class="local">\Drupal\jsonapi\JsonApiSpec</a> @group jsonapi
Namespace
Drupal\Tests\jsonapi\UnitCode
public function testIsValidCustomQueryParameter($custom_query_parameter, $expected) : void {
$this->assertSame($expected, JsonApiSpec::isValidCustomQueryParameter($custom_query_parameter));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.