function UserTest::getPatchDocument
Same name in other branches
- 10 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 200
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.