Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc
[mediawiki.git] / tests / phpunit / includes / specials / SpecialListFilesTest.php
blob2689236b67500cb56b11a0c31f6e37649c9f5d47
1 <?php
2 /**
3 * Test class for SpecialListFiles class.
5 * Copyright © 2013, Antoine Musso
6 * Copyright © 2013, Siebrand Mazeland
7 * Copyright © 2013, Wikimedia Foundation Inc.
9 */
11 class SpecialListFilesTest extends MediaWikiTestCase {
12 /**
13 * @expectedException MWException
14 * @expectedExceptionMesage invalid_field
15 * @covers ImageListPager::formatValue
17 public function testFormatValuesThrowException() {
18 $page = new ImageListPager( RequestContext::getMain() );
19 $page->formatValue( 'invalid_field', 'invalid_value' );