return $data;
} /**
* Provides test cases.
*
* @dataProvider providerTestIsValidCustomQueryParameter
* @covers ::isValidCustomQueryParameter
* @covers ::isValidMemberName
*/
public function testIsValidCustomQueryParameter($custom_query_parameter,
$expected) { $this->
assertSame($expected, JsonApiSpec::
isValidCustomQueryParameter($custom_query_parameter));
} /**
* Data provider for testIsValidCustomQueryParameter.
*/
public static function providerTestIsValidCustomQueryParameter() { $data =
static::
providerTestIsValidMemberName();
// All valid member names are also valid custom query parameters, except for
// single-character ones.
$data['single-character'
][1
] = FALSE;