X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fphpunit%2Fincludes%2Flogging%2FBlockLogFormatterTest.php;h=b6f8f9cc3710f1ba52c1e751db1948d91efe6975;hb=dfec83932fd38a9086eb5a2e212889ad00f35b0e;hp=bc0ca2ad85cc77759293c8166005ce760cce3d44;hpb=342749942bb05852b645bbda23bc60695c25ac79;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/logging/BlockLogFormatterTest.php b/tests/phpunit/includes/logging/BlockLogFormatterTest.php index bc0ca2ad85..b6f8f9cc37 100644 --- a/tests/phpunit/includes/logging/BlockLogFormatterTest.php +++ b/tests/phpunit/includes/logging/BlockLogFormatterTest.php @@ -34,6 +34,30 @@ class BlockLogFormatterTest extends LogFormatterTestCase { 'duration' => 'infinite', 'flags' => [ 'anononly' ], ], + 'preload' => [ new TitleValue( NS_USER_TALK, 'Logtestuser' ) ], + ], + ], + + // With blank page title (T224811) + [ + [ + 'type' => 'block', + 'action' => 'block', + 'comment' => 'Block comment', + 'user' => 0, + 'user_text' => 'Sysop', + 'namespace' => NS_USER, + 'title' => '', + 'params' => [], + ], + [ + 'text' => 'Sysop blocked (no username available) ' + . 'with an expiration time of indefinite', + 'api' => [ + 'duration' => 'infinite', + 'flags' => [], + ], + 'preload' => [], ], ],