X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiBaseTest.php;h=253ac959ff80a29bb946be29cc5a77a086fd25d6;hb=525bfbc8df855aa12e01868d92532cd64482dc7d;hp=96f3e44f0f2122c270e510f9015a0ae0d697afba;hpb=950b3f960aea995ab7c95b01519866a2a1c923ab;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiBaseTest.php b/tests/phpunit/includes/api/ApiBaseTest.php index 96f3e44f0f..253ac959ff 100644 --- a/tests/phpunit/includes/api/ApiBaseTest.php +++ b/tests/phpunit/includes/api/ApiBaseTest.php @@ -1,5 +1,7 @@ fatal( 'blockedtext' ); $expect->fatal( 'autoblockedtext' ); + $expect->fatal( 'systemblockedtext' ); $expect->fatal( 'mainpage' ); $expect->fatal( 'parentheses', 'foobar' ); $this->assertEquals( $expect, $mock->errorArrayToStatus( [ [ 'blockedtext' ], [ 'autoblockedtext' ], + [ 'systemblockedtext' ], 'mainpage', [ 'parentheses', 'foobar' ], ] ) ); @@ -158,11 +162,13 @@ class ApiBaseTest extends ApiTestCase { $expect = Status::newGood(); $expect->fatal( ApiMessage::create( 'apierror-blocked', 'blocked', $blockinfo ) ); $expect->fatal( ApiMessage::create( 'apierror-autoblocked', 'autoblocked', $blockinfo ) ); + $expect->fatal( ApiMessage::create( 'apierror-systemblocked', 'blocked', $blockinfo ) ); $expect->fatal( 'mainpage' ); $expect->fatal( 'parentheses', 'foobar' ); $this->assertEquals( $expect, $mock->errorArrayToStatus( [ [ 'blockedtext' ], [ 'autoblockedtext' ], + [ 'systemblockedtext' ], 'mainpage', [ 'parentheses', 'foobar' ], ], $user ) );