Download & Extend

SimpleTest: Clean-up drupalCreateUser()

Project:Drupal core
Version:7.x-dev
Component:simpletest.module
Category:task
Priority:normal
Assigned:boombatower
Status:closed (fixed)

Issue Summary

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).

AttachmentSizeStatusTest resultOperations
private_permissions_simpletest.patch1.92 KBIdleFailed: 7386 passes, 0 fails, 56 exceptionsView details

Comments

#1

Status:needs review» needs work

The last submitted patch failed testing.

#2

Title:Remove the initial _ in the function name of drupalCreateRole in drupal_web_test_case.php» SimpleTest: Clean-up drupalCreateUser()
Assigned to:dmitrig01» boombatower
Status:needs work» needs review

The permissions need to be defined on drupalCreateUser() then, you can't just move the default in drupalCreateRole()...which is why the tests failed.

AttachmentSizeStatusTest resultOperations
340081-drupalCreateUser.patch1.46 KBIdlePassed: 10931 passes, 0 fails, 0 exceptionsView details

#3

Priority:minor» normal

#4

#5

Status:needs review» reviewed & tested by the community

Read through code, looks good, bot passes.

#6

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks.

#7

Status:fixed» closed (fixed)

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