The simpletest (password_policy.test line 407) fails:
GET http://qqq.jon/user/%24user-%3Euid/edit returned 500 (3.88 KB).
The preceeding line is PDO exception. This is because the line $this->drupalPost('user/$user->uid/edit', $edit, t('Save'));
includes $user->uid in the single-quoted literal string.
Elsewhere in test script this string construction uses double-quotes, which works
Comments
Comment #1
aohrvetpv commentedThanks. It is clearly wrong, but I wonder why the test usually passes? I just ran the tests and they all passed.
Comment #2
aohrvetpv commentedOK, I see now why it was working for me despite the bug. For example, for uid 3:
1. Nonsense path
user/$user->uid/editrequested.2. User's password is expired, so they are disallowed access to most pages, including
user/$user->uid/edit. They are redirected touser/3/edit/accountto change their password.3. POST request still succeeds because the form at
user/3/edit/accountis the same as at the expected pathuser/3/edit.Your site or code must be different, which leads to the bug causing the test to fail.
Comment #4
aohrvetpv commentedComment #5
jons commentedComment #6
jons commentedThanks I'm on D7.28, I'll have a think.