Merge "OutputPage: Use PageViewLanguage instead of PageLanguage for mw.config"
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / ImageListPagerTest.php
1 <?php
2 /**
3 * Test class for ImageListPagerTest class.
4 *
5 * Copyright © 2013, Antoine Musso
6 * Copyright © 2013, Siebrand Mazeland
7 * Copyright © 2013, Wikimedia Foundation Inc.
8 *
9 * @group Database
10 */
11
12 class ImageListPagerTest extends MediaWikiTestCase {
13 /**
14 * @expectedException MWException
15 * @expectedExceptionMessage invalid_field
16 * @covers ImageListPager::formatValue
17 */
18 public function testFormatValuesThrowException() {
19 $page = new ImageListPager( RequestContext::getMain() );
20 $page->formatValue( 'invalid_field', 'invalid_value' );
21 }
22 }