Support from Acquia helps fund testing for Drupal Acquia logo

Comments

naveenvalecha created an issue. See original summary.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

shadcn’s picture

Assigned: Unassigned » shadcn
shadcn’s picture

Status: Active » Needs review
FileSize
8.18 KB
Wim Leers’s picture

+++ b/core/modules/rest/tests/src/Functional/EntityResource/NodeType/NodeTypeResourceTestBase.php
@@ -0,0 +1,93 @@
+    if ($method === 'GET' || $method == 'PATCH' || $method == 'DELETE') {
+      return "The 'access content' permission is required.";
+    }

Interesting, why all of them but not POST?

shadcn’s picture

Version: 8.3.x-dev » 8.4.x-dev
FileSize
8.04 KB
770 bytes

This was from \Drupal\Tests\rest\Functional\EntityResource\Node\NodeResourceTestBase::getExpectedUnauthorizedAccessMessage .

Fixed it for NodeTypeResourceTestBase .

Thanks @Wim Leers.

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

I just tried to fix it for NodeResourceTestBase too, and that causes fails. So that code is necessary for NodeResourceTestBase. But #6 proves it's not necessary for NodeType.

So, this is good to go! Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 5222fbf to 8.4.x and 3ed4688 to 8.3.x. Thanks!

  • alexpott committed 5222fbf on 8.4.x
    Issue #2843777 by arshadcn, Wim Leers: EntityResource: Provide...

  • alexpott committed 3ed4688 on 8.3.x
    Issue #2843777 by arshadcn, Wim Leers: EntityResource: Provide...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.