From: daniel Date: Tue, 26 Jun 2012 14:38:13 +0000 (+0200) Subject: remove test for obsolete getModelName function X-Git-Tag: 1.31.0-rc.0~22097^2^2~80^2~1 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=3df26d12c574ffcc823ca023569de45df7b50bdc;p=lhc%2Fweb%2Fwiklou.git remove test for obsolete getModelName function Change-Id: Ie69e28b9e0b7f40f5814818b91e2660ed0fea423 --- diff --git a/tests/phpunit/includes/ContentHandlerTest.php b/tests/phpunit/includes/ContentHandlerTest.php index 611c09d82b..2eaa285c4a 100644 --- a/tests/phpunit/includes/ContentHandlerTest.php +++ b/tests/phpunit/includes/ContentHandlerTest.php @@ -95,32 +95,6 @@ class ContentHandlerTest extends MediaWikiTestCase { } } - public function dataGetModelName() { - return array( - array( null, null ), - array( "xyzzy", null ), - - array( CONTENT_MODEL_JAVASCRIPT, 'javascript' ), - ); - } - - /** - * @dataProvider dataGetModelName - */ - public function testGetModelName( $id, $expected ) { - try { - $handler = ContentHandler::getForModelID( $id ); - $name = $handler->getModelID(); - - if ( !$expected ) $this->fail("should not have a name for content id #$id"); - - $this->assertNotNull( $name, "no name found for content model #$id" ); - $this->assertEquals( $expected, $name); - } catch (MWException $e) { - if ( $expected ) $this->fail("failed to get name for content id #$id"); - } - } - public function dataGetPageLanguage() { global $wgLanguageCode;