Loading core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ protected function getExpectedNormalizedEntity() { */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. return []; } /** Loading core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ protected function getExpectedNormalizedEntity() { */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. return []; } } core/modules/comment/tests/src/Functional/CommentNonNodeTest.php +1 −3 Original line number Diff line number Diff line Loading @@ -179,10 +179,8 @@ public function postComment(EntityInterface $entity, $comment, $subject = '', $c $this->assertArrayHasKey(1, $match); } if (isset($match[1])) { return Comment::load($match[1]); } } /** * Checks current page for specified comment. Loading core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php +4 −3 Original line number Diff line number Diff line Loading @@ -317,16 +317,17 @@ public function testPostDxWithoutCriticalBaseFields() { */ protected function getExpectedUnauthorizedAccessMessage($method) { switch ($method) { case 'GET'; case 'GET': return "The 'access comments' permission is required and the comment must be published."; case 'POST'; case 'POST': return "The 'post comments' permission is required."; case 'PATCH'; case 'PATCH': return "The 'edit own comments' permission is required, the user must be the comment author, and the comment must be published."; case 'DELETE': default: // \Drupal\comment\CommentAccessControlHandler::checkAccess() does not // specify a reason for not allowing a comment to be deleted. return ''; Loading core/modules/comment/tests/src/Functional/Rest/CommentTypeResourceTestBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ protected function getExpectedNormalizedEntity() { */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. return []; } } Loading
core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ protected function getExpectedNormalizedEntity() { */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. return []; } /** Loading
core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ protected function getExpectedNormalizedEntity() { */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. return []; } }
core/modules/comment/tests/src/Functional/CommentNonNodeTest.php +1 −3 Original line number Diff line number Diff line Loading @@ -179,10 +179,8 @@ public function postComment(EntityInterface $entity, $comment, $subject = '', $c $this->assertArrayHasKey(1, $match); } if (isset($match[1])) { return Comment::load($match[1]); } } /** * Checks current page for specified comment. Loading
core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php +4 −3 Original line number Diff line number Diff line Loading @@ -317,16 +317,17 @@ public function testPostDxWithoutCriticalBaseFields() { */ protected function getExpectedUnauthorizedAccessMessage($method) { switch ($method) { case 'GET'; case 'GET': return "The 'access comments' permission is required and the comment must be published."; case 'POST'; case 'POST': return "The 'post comments' permission is required."; case 'PATCH'; case 'PATCH': return "The 'edit own comments' permission is required, the user must be the comment author, and the comment must be published."; case 'DELETE': default: // \Drupal\comment\CommentAccessControlHandler::checkAccess() does not // specify a reason for not allowing a comment to be deleted. return ''; Loading
core/modules/comment/tests/src/Functional/Rest/CommentTypeResourceTestBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ protected function getExpectedNormalizedEntity() { */ protected function getNormalizedPostEntity() { // @todo Update in https://www.drupal.org/node/2300677. return []; } }