2013-12-27 17:02:40 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
2014-08-17 22:18:06 +00:00
|
|
|
* Test class for ImageListPagerTest class.
|
2013-12-27 17:02:40 +00:00
|
|
|
*
|
|
|
|
|
* Copyright © 2013, Antoine Musso
|
|
|
|
|
* Copyright © 2013, Siebrand Mazeland
|
|
|
|
|
* Copyright © 2013, Wikimedia Foundation Inc.
|
|
|
|
|
*
|
2014-08-15 21:11:26 +00:00
|
|
|
* @group Database
|
2013-12-27 17:02:40 +00:00
|
|
|
*/
|
2014-08-17 22:18:06 +00:00
|
|
|
class ImageListPagerTest extends MediaWikiTestCase {
|
2013-12-27 17:02:40 +00:00
|
|
|
/**
|
|
|
|
|
* @expectedException MWException
|
2014-07-23 21:28:19 +00:00
|
|
|
* @expectedExceptionMessage invalid_field
|
2013-12-27 17:02:40 +00:00
|
|
|
* @covers ImageListPager::formatValue
|
|
|
|
|
*/
|
|
|
|
|
public function testFormatValuesThrowException() {
|
|
|
|
|
$page = new ImageListPager( RequestContext::getMain() );
|
|
|
|
|
$page->formatValue( 'invalid_field', 'invalid_value' );
|
|
|
|
|
}
|
|
|
|
|
}
|