wiki.techinc.nl/tests/phpunit/includes/specials/ImageListPagerTest.php
Jeff Janes 7e3fcc39ea PHPUnit: Add Database tags
Several unit tests access the database, but did not declare
themselves in the Database @group.  This causes
"make databaseless" to fail needlessly.  Add the
missing tags.

tests/phpunit/includes/LinkerTest.php
tests/phpunit/includes/actions/ActionTest.php
tests/phpunit/includes/specials/ImageListPagerTest.php
tests/phpunit/includes/specials/SpecialMIMESearchTest.php
tests/phpunit/includes/title/MediaWikiPageLinkRendererTest.php

Other than ActionTest.php, these also are problematic in 1.23

Change-Id: I7c1c957e2194c13e48b7ba68d7529e5d89901875
2014-09-16 18:42:27 -07:00

22 lines
564 B
PHP

<?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' );
}
}