function ResourceTestBase::getExpectedDocument

Same name and namespace in other branches
  1. 10 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getExpectedDocument()
  2. 11.x core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getExpectedDocument()
  3. 8.9.x core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getExpectedDocument()

Returns the expected JSON:API document for the entity.

Return value

array A JSON:API response document.

See also

::createEntity()

3 methods override ResourceTestBase::getExpectedDocument()
BlockTest::getExpectedDocument in core/modules/jsonapi/tests/src/Functional/BlockTest.php
Returns the expected JSON:API document for the entity.
FilterFormatTest::getExpectedDocument in core/modules/jsonapi/tests/src/Functional/FilterFormatTest.php
Returns the expected JSON:API document for the entity.
ViewTest::getExpectedDocument in core/modules/jsonapi/tests/src/Functional/ViewTest.php
Returns the expected JSON:API document for the entity.

File

core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php, line 446

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

abstract protected function getExpectedDocument();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.