function ResourceTestBase::getExpectedDocument
Same name and namespace in other branches
- 10 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getExpectedDocument()
- 11.x core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::getExpectedDocument()
- 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\FunctionalCode
abstract protected function getExpectedDocument();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.