The registration test which checks for an invalid verification code fails if
$TWiki::needVerification
is off.
It ought to explicitly set this value before running this test, like the other tests do.
Index: test/unit/RegisterTests.pm
===================================================================
--- test/unit/RegisterTests.pm (Revision 7547)
+++ test/unit/RegisterTests.pm (Arbeitskopie)
@@ -284,6 +284,7 @@
#Register a user, then give a bad verification code. It should barf.
sub test_registerBadVerify {
my $this = shift;
+ $TWiki::cfg{Register}{NeedVerification} = 1;
my $query = new CGI ({
'TopicName' => [
'TWikiRegistration'
SVN 7550
CC