Merge "Fix use of GenderCache in ApiPageSet::processTitlesArray"
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / ImageListPagerTest.php
1 <?php
2
3 use MediaWiki\MediaWikiServices;
4
5 /**
6 * Test class for ImageListPagerTest class.
7 *
8 * Copyright © 2013, Antoine Musso
9 * Copyright © 2013, Siebrand Mazeland
10 * Copyright © 2013, Wikimedia Foundation Inc.
11 *
12 * @group Database
13 */
14 class ImageListPagerTest extends MediaWikiTestCase {
15 /**
16 * @expectedException MWException
17 * @expectedExceptionMessage invalid_field
18 * @covers ImageListPager::formatValue
19 */
20 public function testFormatValuesThrowException() {
21 $page = new ImageListPager( RequestContext::getMain(), null, '', false, false,
22 MediaWikiServices::getInstance()->getLinkRenderer() );
23 $page->formatValue( 'invalid_field', 'invalid_value' );
24 }
25 }