* @covers ::formatValue
*/
public function testFormatValueRestrictions() {
+ $this->setMwGlobals( 'wgArticlePath', '/wiki/$1' );
+
$pager = new BlockListPager( new SpecialPage(), [] );
$row = (object)[
$formatted = $pager->formatValue( 'ipb_params', '' );
$this->assertEquals( '<ul><li>'
+ // FIXME: Expectation value should not be dynamic
+ // and must not depend on a localisation message.
+ // TODO: Mock the message or consider using qqx.
. wfMessage( 'blocklist-editing' )->text()
- . '<ul><li><a href="/index.php/'
- . $title->getDBKey()
- . '" title="'
+ . '<ul><li><a href="/wiki/Victor_Frankenstein" title="'
. $pageName
. '">'
. $pageName