abstract protected function ResourceTestBase::getExpectedDocument in JSON:API 8
Same name and namespace in other branches
- 8.2 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 calls to ResourceTestBase::getExpectedDocument()
- ResourceTestBase::doTestSparseFieldSets in tests/
src/ Functional/ ResourceTestBase.php - Tests sparse field sets.
- ResourceTestBase::getExpectedGetIndividualResourceResponse in tests/
src/ Functional/ ResourceTestBase.php - Gets the expected individual ResourceResponse for GET.
- ResourceTestBase::testGetIndividual in tests/
src/ Functional/ ResourceTestBase.php - Tests GETting an individual resource, plus edge cases to ensure good DX.
45 methods override ResourceTestBase::getExpectedDocument()
- ActionTest::getExpectedDocument in tests/
src/ Functional/ ActionTest.php - Returns the expected JSON API document for the entity.
- BaseFieldOverrideTest::getExpectedDocument in tests/
src/ Functional/ BaseFieldOverrideTest.php - Returns the expected JSON API document for the entity.
- BlockContentTest::getExpectedDocument in tests/
src/ Functional/ BlockContentTest.php - Returns the expected JSON API document for the entity.
- BlockContentTypeTest::getExpectedDocument in tests/
src/ Functional/ BlockContentTypeTest.php - Returns the expected JSON API document for the entity.
- BlockTest::getExpectedDocument in tests/
src/ Functional/ BlockTest.php - Returns the expected JSON API document for the entity.
File
- tests/
src/ Functional/ ResourceTestBase.php, line 385
Class
- ResourceTestBase
- Subclass this for every JSON API resource type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected abstract function getExpectedDocument();