diff --git a/core/modules/rest/src/Tests/RESTTestBase.php b/core/modules/rest/src/Tests/RESTTestBase.php index 1497026..220ed57 100644 --- a/core/modules/rest/src/Tests/RESTTestBase.php +++ b/core/modules/rest/src/Tests/RESTTestBase.php @@ -244,7 +244,7 @@ protected function entityValues($entity_type) { protected function enableService($resource_type, $method = 'GET', $format = NULL, $auth = NULL) { // Enable REST API for this entity type. /** @var \Drupal\rest\RestEndpointInterface $endpoint */ - $endpoint = $this->endpoint_storage->create(['id' => $resource_type]); + $endpoint = $this->endpoint_storage->create(['plugin_id' => $resource_type]); $settings = array(); if ($resource_type) { diff --git a/core/modules/rest/src/Tests/ResourceTest.php b/core/modules/rest/src/Tests/ResourceTest.php index 2b74fef..edb3b18 100644 --- a/core/modules/rest/src/Tests/ResourceTest.php +++ b/core/modules/rest/src/Tests/ResourceTest.php @@ -36,7 +36,7 @@ protected function setUp() { */ public function testFormats() { /** @var \Drupal\rest\RestEndpointInterface $endpoint */ - $endpoint = $this->endpoint_storage->create(['id' => 'entity__entity_test']); + $endpoint = $this->endpoint_storage->create(['plugin_id' => 'entity__entity_test']); $endpoint->setSettings([ 'GET' => [ 'supported_auth' => [ @@ -63,7 +63,7 @@ public function testFormats() { */ public function testAuthentication() { /** @var \Drupal\rest\RestEndpointInterface $endpoint */ - $endpoint = $this->endpoint_storage->create(['id' => 'entity__entity_test']); + $endpoint = $this->endpoint_storage->create(['plugin_id' => 'entity__entity_test']); $endpoint->setSettings([ 'GET' => [ 'supported_formats' => [