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
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 .
#2
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
have no bothered with negative patch, just rm the old files.
#4
Committed thanks chx
#5
Automatically closed -- issue fixed for two weeks with no activity.