From 3df26d12c574ffcc823ca023569de45df7b50bdc Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 26 Jun 2012 16:38:13 +0200 Subject: [PATCH] remove test for obsolete getModelName function Change-Id: Ie69e28b9e0b7f40f5814818b91e2660ed0fea423 --- tests/phpunit/includes/ContentHandlerTest.php | 26 ------------------- 1 file changed, 26 deletions(-) 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; -- 2.20.1