summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/specials/ImageListPagerTest.php
blob: 22bdefdff35fb1bf037289a551f1b9a93b7382f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Test class for ImageListPagerTest class.
 *
 * Copyright © 2013, Antoine Musso
 * Copyright © 2013, Siebrand Mazeland
 * Copyright © 2013, Wikimedia Foundation Inc.
 *
 * @group Database
 */

class ImageListPagerTest extends MediaWikiTestCase {
	/**
	 * @expectedException MWException
	 * @expectedExceptionMessage invalid_field
	 * @covers ImageListPager::formatValue
	 */
	public function testFormatValuesThrowException() {
		$page = new ImageListPager( RequestContext::getMain() );
		$page->formatValue( 'invalid_field', 'invalid_value' );
	}
}