Skip to content

Commit

Permalink
Item12888: Fix register test
Browse files Browse the repository at this point in the history
Fix for buik registration added a more specific message for the case
when a login name is provided but not supported.  Telling the user to
check the LoginNameFilter didn't make sense if the feature is disabled.

git-svn-id: http://svn.foswiki.org/trunk@17778 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jun 19, 2014
1 parent 18eb5cf commit 76ef497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitTestContrib/test/unit/RegisterTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2149,9 +2149,9 @@ sub test_Item12205 {
? 'attention'
: 'register';
$this->assert_str_equals( $template, $e->{template}, $e->stringify() );
$this->assert_str_equals( "bad_loginname", $e->{def}, $e->stringify() );
$this->assert_matches( 'not allowed', $e->{params}->[0],
$this->assert_str_equals( "unsupport_loginname", $e->{def},
$e->stringify() );
$this->assert_matches( 'somename', $e->{params}->[0], $e->stringify() );
}
catch Foswiki::AccessControlException with {
my $e = shift;
Expand Down

0 comments on commit 76ef497

Please sign in to comment.