From 2e44b49a2db3026050b136de9b00f749dd3ff939 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 25 Apr 2014 06:26:49 +0200 Subject: Update to MediaWiki 1.22.6 --- tests/phpunit/includes/content/CssContentTest.php | 87 ----------------------- 1 file changed, 87 deletions(-) delete mode 100644 tests/phpunit/includes/content/CssContentTest.php (limited to 'tests/phpunit/includes/content/CssContentTest.php') diff --git a/tests/phpunit/includes/content/CssContentTest.php b/tests/phpunit/includes/content/CssContentTest.php deleted file mode 100644 index bd6d41fe..00000000 --- a/tests/phpunit/includes/content/CssContentTest.php +++ /dev/null @@ -1,87 +0,0 @@ -setName( '127.0.0.1' ); - - $this->setMwGlobals( array( - 'wgUser' => $user, - 'wgTextModelsToParse' => array( - CONTENT_MODEL_CSS, - ) - ) ); - } - - public function newContent( $text ) { - return new CssContent( $text ); - } - - public static function dataGetParserOutput() { - return array( - array( - 'MediaWiki:Test.css', - null, - "hello \n", - "
\nhello <world>\n\n
" - ), - array( - 'MediaWiki:Test.css', - null, - "/* hello [[world]] */\n", - "
\n/* hello [[world]] */\n\n
", - array( - 'Links' => array( - array( 'World' => 0 ) - ) - ) - ), - - // TODO: more...? - ); - } - - /** - * @covers CssContent::getModel - */ - public function testGetModel() { - $content = $this->newContent( 'hello world.' ); - - $this->assertEquals( CONTENT_MODEL_CSS, $content->getModel() ); - } - - /** - * @covers CssContent::getContentHandler - */ - public function testGetContentHandler() { - $content = $this->newContent( 'hello world.' ); - - $this->assertEquals( CONTENT_MODEL_CSS, $content->getContentHandler()->getModelID() ); - } - - public static function dataEquals() { - return array( - array( new CssContent( 'hallo' ), null, false ), - array( new CssContent( 'hallo' ), new CssContent( 'hallo' ), true ), - array( new CssContent( 'hallo' ), new WikitextContent( 'hallo' ), false ), - array( new CssContent( 'hallo' ), new CssContent( 'HALLO' ), false ), - ); - } - - /** - * @dataProvider dataEquals - * @covers CssContent::equals - */ - public function testEquals( Content $a, Content $b = null, $equal = false ) { - $this->assertEquals( $equal, $a->equals( $b ) ); - } -} -- cgit v1.2.3-54-g00ecf