User system tests

Rok Žlender - December 25, 2007 - 11:36
Project:SimpleTest
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

user/register Register a new user.
user/login Login.
user/password Reset password.
user/#/edit Save user profile.
user/#/edit Delete user.
user As logged-in user, confirm you are taken to your user profile.
user As anonymous user, confirm you are taken to the login form.

Some tests are already in user_access.test user_registration_test.test user_validation.test

#1

chx - December 25, 2007 - 22:45
Status:active» patch (code needs review)

The UserRegistrationTest does most of this now, it existed before but I fixed it a bit, it had stuff like 'profiles' module instead of 'profile' assertNoText instead of assertNoUnwantedRaw someplace -- there was even a message that theme placeholder causes problems. I moved all tests into a user_module.test .

AttachmentSize
user_tests.patch21.62 KB

#2

Rok Žlender - December 27, 2007 - 08:21
Status:patch (code needs review)» patch (code needs work)

One small problem with this test. In line 51 $this->assertEqual($user->edit-timezone, NULL, 'Checking timezone field'); that edit is wrong. After I fixed it this line produces a fail on my computer $user->timezone = 3600 I don't know exactly how this field is populated when new user is created but I guess this is not hard coded.

#3

chx - January 3, 2008 - 10:22
Status:patch (code needs work)» patch (code needs review)

have no bothered with negative patch, just rm the old files.

AttachmentSize
user_module.test11.14 KB

#4

Rok Žlender - January 5, 2008 - 10:40
Status:patch (code needs review)» fixed

Committed thanks chx

#5

Anonymous - January 19, 2008 - 10:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.