Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
20 Jan 2014 at 05:35 UTC
Updated:
29 Jul 2014 at 23:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sun_access: trueyields→ only
_access: 'TRUE'works.Ugh.
Comment #3
dawehnerShouldn't we also remove the "access content" permission from created users in tests? This would be certainly harder to find them all.
Comment #4
berdirThose tests rely on the fact that testing profile grants that permission to the anon and authenticated user role, so they all have it by default, just like the standard profile used to.
Comment #5
sunRemoving the permission assignments remains to be done for #1541298: Remove Node module dependency from Testing profile
For this issue here, I just want to get rid of access permission requirement in all test module routes, because that makes up ~60% of the patch in #1541298.
The earlier this gets in, the smaller is the chance that someone will copy/paste an existing test module route with this permission. Historically, that copy/pasting behavior is the root cause for why we have all these bogus access requirements.
Comment #6
xanoI confirmed that this patch only removes the access checks from routes that belong to testing modules, and that
testing_install()indeed grants the removed permission to anonymous and authenticated users, as @Berdir said in #4.Comment #7
sun1: drupal8.test-route-access.1.patch queued for re-testing.
Comment #9
xanoRe-roll.
Comment #10
sunComment #11
dawehnerback to rtbc
Comment #12
sun9: drupal_2177093_9.patch queued for re-testing.
Comment #14
internetdevels commentedAdded new patch.
Comment #16
alexpottFix the remaining test failures.
Comment #17
alexpottComment #18
sunComment #19
webchickCommitted and pushed to 8.x. Thanks!