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

CommentFileSizeAuthor
#3 user_module.test11.14 KBchx
#1 user_tests.patch21.62 KBchx

Comments

chx’s picture

Status: Active » Needs review
StatusFileSize
new21.62 KB

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 .

Rok Žlender’s picture

Status: Needs review » 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.

chx’s picture

Status: Needs work » Needs review
StatusFileSize
new11.14 KB

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

Rok Žlender’s picture

Status: Needs review » Fixed

Committed thanks chx

Anonymous’s picture

Status: Fixed » Closed (fixed)

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