Tests needed: user.module

dmitrig01 - June 30, 2008 - 05:48
Project:Drupal
Version:7.x-dev
Component:user.module
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

This information is from the code coverage report (see http://coverage.cwgordon.com/coverage).

We need to test:

1) Loading users from various services (hook_info + hook_auth)
2) Changing a user's roles
3) Deleting a blocked user's session
4) Submitting a username with an invalid character
5) User searching
6) All the user blocks
7) Updating users from the old to the new hashing algorithm
8) Permissions, roles, multiple roles, etc.
9) Signatures
10) All user actions.

#1

bardaqani - July 2, 2008 - 07:02
Assigned to:Anonymous» bardaqani

I will do my hardest best to complete this test within the next two weeks.

#2

mdupont - February 10, 2009 - 09:45
Component:tests» user.module
Assigned to:bardaqani» Anonymous

Is this issue still active? The above URL gives me an error. By the way, if it is, it would still need some testing.

#3

Dave Reid - February 15, 2009 - 00:19

The user role and permissions tests are being added in #300993: User roles and permissions API.

#4

TommyK - August 16, 2009 - 00:59

From the list in the initial issue:

4) Submitting a username with an invalid character

Coverage seems to have been started, but all illegal characters do not seem to be tested. It only seems that the forward slash is tested for.

#5

rgon - August 16, 2009 - 01:46

9) Signatures in the issue list above:

There appears to be no tests for existence or validity of signature in user.test

A test might include:
1) enabling of signatures
2) creation of new user
3) creation of valid and invalid signatures for user
4) enable comment module if not so
5) create comment to check that signature appears
6) remove comment and created user

#6

Chris Charlton - August 16, 2009 - 01:46

Missing "Who's New" block test. (#6 on the list above)

#7

Chris Charlton - August 16, 2009 - 01:48

No user search test committed yet. (#5 on the list above)

#8

Chris Charlton - August 16, 2009 - 02:19

Test missing for creating a new role (for example: "test" user role), and assigning user(s) to that role. Also, multiple role needs to be accounted for.

It would be expected that the following would be in the test:
- Create new user.
- Create new role(s).
- Apply core permission(s) to the new role.
- ...
- revoke role from user
- remove role from site

 
 

Drupal is a registered trademark of Dries Buytaert.