function InternalEntitiesTest::jsonapiGet
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php \Drupal\Tests\jsonapi\Functional\InternalEntitiesTest::jsonapiGet()
- 8.9.x core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php \Drupal\Tests\jsonapi\Functional\InternalEntitiesTest::jsonapiGet()
- 10 core/modules/jsonapi/tests/src/Functional/InternalEntitiesTest.php \Drupal\Tests\jsonapi\Functional\InternalEntitiesTest::jsonapiGet()
Performs an authenticated request and returns the decoded document.
3 calls to InternalEntitiesTest::jsonapiGet()
- InternalEntitiesTest::getIndividual in core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php - Returns the decoded JSON:API document for the for the given entity.
- InternalEntitiesTest::getRelated in core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php - Performs an authenticated request and returns the decoded document.
- InternalEntitiesTest::testEntryPoint in core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php - Ensures that internal resources types aren't present in the entry point.
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ InternalEntitiesTest.php, line 188
Class
- InternalEntitiesTest
- Makes assertions about the JSON:API behavior for internal entities.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
protected function jsonapiGet($path, array $options = []) {
$this->drupalLogin($this->testUser);
$response = $this->drupalGet($path, $options, [
'Accept' => 'application/vnd.api+json',
]);
return Json::decode($response);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.