The drupalLogout method wasn't executing the second assertion:
$pass = ($pass && $this->assertField('pass', t('[logout] Password field found.')));
So I concluded that $pass must not be TRUE. Sure enough it wasn't set.
I check the assertField method and noticed that it didn't return the value.
This patch fixes that and the spacing on the drupalLogout method.
| Comment | File | Size | Author |
|---|---|---|---|
| simpletest_assert_return.patch | 3.78 KB | boombatower |
Comments
Comment #1
dmitrig01 commentedThere's a much simpler solution:
Comment #2
boombatower commentedI know that, but the methods should return the value anyway to be consistent with SimpleTest and to work correctly.
That fix would only make the function execute, but wouldn't fix the issue since
$passstill wouldn't be set as it should. It essentially would be a pointless line of code.Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.