X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2Fincludes%2Fuser%2FPasswordResetTest.php;h=ca57c10b6f5ae9e2b2555adabbfe0d0a2bd5cad4;hb=9792a09c306a6604a127a3a06f7b10cbc7e7a23f;hp=e8334d6bf9741e5e27495e39d79fcec88bdd2e56;hpb=1e7da67c180092b1c2effc77f590cc160127ce72;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/user/PasswordResetTest.php b/tests/phpunit/includes/user/PasswordResetTest.php index e8334d6bf9..ca57c10b6f 100644 --- a/tests/phpunit/includes/user/PasswordResetTest.php +++ b/tests/phpunit/includes/user/PasswordResetTest.php @@ -1,6 +1,7 @@ true, 'allowsAuthenticationDataChange' => true, 'canEditPrivate' => true, - 'block' => new Block( [ 'systemBlock' => 'proxy' ] ), + 'block' => new SystemBlock( + [ 'systemBlock' => 'proxy' ] + ), 'globalBlock' => null, 'isAllowed' => false, ], - 'globally blocked with account creation disabled' => [ - 'passwordResetRoutes' => [ 'username' => true ], - 'enableEmail' => true, - 'allowsAuthenticationDataChange' => true, - 'canEditPrivate' => true, - 'block' => null, - 'globalBlock' => new Block( [ 'systemBlock' => 'global-block', 'createAccount' => true ] ), - 'isAllowed' => false, - ], 'globally blocked with account creation not disabled' => [ 'passwordResetRoutes' => [ 'username' => true ], 'enableEmail' => true, 'allowsAuthenticationDataChange' => true, 'canEditPrivate' => true, 'block' => null, - 'globalBlock' => new Block( [ 'systemBlock' => 'global-block', 'createAccount' => false ] ), + 'globalBlock' => new SystemBlock( + [ 'systemBlock' => 'global-block' ] + ), 'isAllowed' => true, ], 'blocked via wgSoftBlockRanges' => [ @@ -129,7 +125,9 @@ class PasswordResetTest extends MediaWikiTestCase { 'enableEmail' => true, 'allowsAuthenticationDataChange' => true, 'canEditPrivate' => true, - 'block' => new Block( [ 'systemBlock' => 'wgSoftBlockRanges', 'anonOnly' => true ] ), + 'block' => new SystemBlock( + [ 'systemBlock' => 'wgSoftBlockRanges', 'anonOnly' => true ] + ), 'globalBlock' => null, 'isAllowed' => true, ], @@ -138,7 +136,7 @@ class PasswordResetTest extends MediaWikiTestCase { 'enableEmail' => true, 'allowsAuthenticationDataChange' => true, 'canEditPrivate' => true, - 'block' => new Block( [ 'systemBlock' => 'unknown' ] ), + 'block' => new SystemBlock( [ 'systemBlock' => 'unknown' ] ), 'globalBlock' => null, 'isAllowed' => false, ],