function CommentTest::doTestPatchIndividual
Same name in other branches
- 10 core/modules/jsonapi/tests/src/Functional/CommentTest.php \Drupal\Tests\jsonapi\Functional\CommentTest::doTestPatchIndividual()
Overrides ResourceTestBase::doTestPatchIndividual
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ CommentTest.php, line 385
Class
- CommentTest
- JSON:API integration test for the "Comment" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function doTestPatchIndividual() : void {
// Ensure ::getModifiedEntityForPatchTesting() can pick an alternative value
// for the 'entity_id' field.
EntityTest::create([
'name' => $this->randomString(),
'type' => 'bar',
])
->save();
parent::doTestPatchIndividual();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.