Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
28 Nov 2008 at 04:25 UTC
Updated:
13 May 2009 at 12:10 UTC
Jump to comment: Most recent file
It's just a simple code style fix.
I also removed some stupidity where it was setting $permisions to default to NULL, and then if it was null then set it to the default array. Since there are no additional parameters, this is pointless.
Also, checkPermissions becomes private simply because it doesn't need to be protected (no one should use it).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 340081-drupalCreateUser.patch | 1.46 KB | boombatower |
| private_permissions_simpletest.patch | 1.92 KB | dmitrig01 |
Comments
Comment #2
boombatower commentedThe permissions need to be defined on drupalCreateUser() then, you can't just move the default in drupalCreateRole()...which is why the tests failed.
Comment #3
boombatower commentedComment #4
dave reidAlso see #300993: User roles and permissions API.
Comment #5
dmitrig01 commentedRead through code, looks good, bot passes.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks.