tests/src/Functional/RestJsonApiFormatUnsupported.php | 7 ++++++- tests/src/Functional/RestJsonApiUnsupported.php | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/src/Functional/RestJsonApiFormatUnsupported.php b/tests/src/Functional/RestJsonApiFormatUnsupported.php index 1c7d783..645f779 100644 --- a/tests/src/Functional/RestJsonApiFormatUnsupported.php +++ b/tests/src/Functional/RestJsonApiFormatUnsupported.php @@ -34,6 +34,11 @@ class RestJsonApiFormatUnsupported extends ResourceTestBase { /** * {@inheritdoc} */ + protected static $resourceConfigId = 'entity.node'; + + /** + * {@inheritdoc} + */ protected function setUpAuthorization($method) { $this->grantPermissionsToTestedRole(['access content']); } @@ -73,7 +78,7 @@ class RestJsonApiFormatUnsupported extends ResourceTestBase { // Second, verify that provisioning a REST resource that lists 'api_json' as // one of its formats - $this->provisionResource('entity.node', ['api_json'], []); + $this->provisionResource(['api_json'], []); $this->setUpAuthorization('GET'); $url = Node::load(1)->toUrl()->setOption('query', ['_format' => 'api_json']); $response = $this->request('GET', $url, []); diff --git a/tests/src/Functional/RestJsonApiUnsupported.php b/tests/src/Functional/RestJsonApiUnsupported.php index 18e0878..6e026f6 100644 --- a/tests/src/Functional/RestJsonApiUnsupported.php +++ b/tests/src/Functional/RestJsonApiUnsupported.php @@ -34,6 +34,11 @@ class RestJsonApiUnsupported extends ResourceTestBase { /** * {@inheritdoc} */ + protected static $resourceConfigId = 'entity.node'; + + /** + * {@inheritdoc} + */ protected function setUpAuthorization($method) { switch ($method) { case 'GET': @@ -74,7 +79,7 @@ class RestJsonApiUnsupported extends ResourceTestBase { public function testApiJsonNotSupportedInRest() { $this->assertSame(['json', 'xml'], $this->container->getParameter('serializer.formats')); - $this->provisionResource('entity.node', ['api_json'], []); + $this->provisionResource(['api_json'], []); $this->setUpAuthorization('GET'); $url = Node::load(1)->toUrl()