function JsonApiSpecTest::testIsValidMemberName
Ensures that member names are properly validated.
@legacy-covers ::isValidMemberName
Attributes
#[DataProvider('providerTestIsValidMemberName')]
File
-
core/
modules/ jsonapi/ tests/ src/ Unit/ JsonApiSpecTest.php, line 28
Class
Namespace
Drupal\Tests\jsonapi\UnitCode
public function testIsValidMemberName($member_name, $expected) : void {
$this->assertSame($expected, JsonApiSpec::isValidMemberName($member_name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.