function UserTest::getPatchDocument
Same name in other branches
- 11.x core/modules/jsonapi/tests/src/Functional/UserTest.php \Drupal\Tests\jsonapi\Functional\UserTest::getPatchDocument()
Overrides ResourceTestBase::getPatchDocument
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ UserTest.php, line 201
Class
- UserTest
- JSON:API integration test for the "User" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function getPatchDocument() {
return [
'data' => [
'id' => $this->entity
->uuid(),
'type' => 'user--user',
'attributes' => [
'name' => 'Drama llama 2',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.