Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Critical
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
8 Jan 2012 at 18:10 UTC
Updated:
29 Jul 2014 at 20:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aspilicious commentedOk that has to be done :)
Comment #2
sunFWIW, I manually tested and can confirm that this change resolves fatal errors and makes such patches pass again; e.g.:
#1376166-28: Custom logo and favicon functionality inanely tries to support absolute local file paths
Comment #3
sunHold on, we also need the 'access content' permissions.
Comment #4
sunAttached patch additionally restores/reverts the testing.install change of the Node-optional patch:
http://drupalcode.org/project/drupal.git/blobdiff/25043d962b6d2bf755d7a1...
Comment #5
sunThe permissions are required, because tests, which assume that Node module is installed, also assume that the built-in anonymous and authenticated user roles can 'access content'. Merely installing Node module does not grant the permissions.
The missing permissions also explain the huge amount of test failures in the patch with ".node." suffix in http://drupal.org/node/1373142#comment-5443554 - which should have passed just like the one before.
Comment #7
sunThe reason for why that test fails is that the test already uses the Testing profile, but does not account for (non-required) modules being already installed by the installation profile.
Therefore, the test worked, since the Testing profile did not install any additional modules in the past.
Attached patch makes the test account for already pre-installed modules by the installation profile, so that these are not attempted to be enabled. The final module disable and uninstall assertions are still executed for them though (since they are optional).
Thus, this patch should come back green and be RTBC.
Comment #8
sunAlright, so the patch passed tests.
However, I'm no longer sure whether we need to do this, because we're in a weird situation now:
Kind of a chicken-and-egg situation.
Comment #9
sunGrace period is over.