diff options
-rw-r--r-- | tests/phpunit/includes/specials/SpecialBlockTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/phpunit/includes/specials/SpecialBlockTest.php b/tests/phpunit/includes/specials/SpecialBlockTest.php index c0dc7edb4e46..5a72e5b9da63 100644 --- a/tests/phpunit/includes/specials/SpecialBlockTest.php +++ b/tests/phpunit/includes/specials/SpecialBlockTest.php @@ -285,7 +285,7 @@ class SpecialBlockTest extends SpecialPageTestBase { $reason, ], 'Confirm' => '1', - 'CreateAccount' => '0', + 'CreateAccount' => '1', 'DisableUTEdit' => '0', 'DisableEmail' => '0', 'HardBlock' => '0', @@ -304,6 +304,7 @@ class SpecialBlockTest extends SpecialPageTestBase { $this->assertSame( $reason, $block->getReasonComment()->text ); $this->assertSame( $expiry, $block->getExpiry() ); $this->assertFalse( $block->isSitewide() ); + $this->assertTrue( $block->isCreateAccountBlocked() ); $this->assertCount( 2, $block->getRestrictions() ); $this->assertTrue( $this->getBlockRestrictionStore()->equals( $block->getRestrictions(), [ new PageRestriction( $block->getId(), $pageMars->getId() ), @@ -320,6 +321,7 @@ class SpecialBlockTest extends SpecialPageTestBase { $this->assertSame( $reason, $block->getReasonComment()->text ); $this->assertSame( $expiry, $block->getExpiry() ); $this->assertFalse( $block->isSitewide() ); + $this->assertTrue( $block->isCreateAccountBlocked() ); $this->assertCount( 1, $block->getRestrictions() ); $this->assertTrue( $this->getBlockRestrictionStore()->equals( $block->getRestrictions(), [ new PageRestriction( $block->getId(), $pageMars->getId() ), @@ -335,6 +337,7 @@ class SpecialBlockTest extends SpecialPageTestBase { $this->assertSame( $reason, $block->getReasonComment()->text ); $this->assertSame( $expiry, $block->getExpiry() ); $this->assertFalse( $block->isSitewide() ); + $this->assertTrue( $block->isCreateAccountBlocked() ); $this->assertSame( [], $block->getRestrictions() ); // Change to sitewide. |