From bbd5b3f78604d5d27f422600fc4e45d36174eb09 Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 6 Dec 2012 23:11:16 +0100 Subject: [PATCH] Use the canonical class name: s/JavascriptContent/JavaScriptContent/ Change-Id: I95bfb8860f77d01bad027d1c2baf2d871e093758 --- .../includes/content/JavascriptContentTest.php | 12 ++++++------ tests/phpunit/includes/content/TextContentTest.php | 2 +- .../phpunit/includes/content/WikitextContentTest.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/includes/content/JavascriptContentTest.php b/tests/phpunit/includes/content/JavascriptContentTest.php index e08252c5bd..18df53fde8 100644 --- a/tests/phpunit/includes/content/JavascriptContentTest.php +++ b/tests/phpunit/includes/content/JavascriptContentTest.php @@ -5,10 +5,10 @@ * @group Database * ^--- needed, because we do need the database to test link updates */ -class JavascriptContentTest extends TextContentTest { +class JavaScriptContentTest extends TextContentTest { public function newContent( $text ) { - return new JavascriptContent( $text ); + return new JavaScriptContent( $text ); } public static function dataGetParserOutput() { @@ -263,10 +263,10 @@ class JavascriptContentTest extends TextContentTest { public static function dataEquals( ) { return array( - array( new JavascriptContent( "hallo" ), null, false ), - array( new JavascriptContent( "hallo" ), new JavascriptContent( "hallo" ), true ), - array( new JavascriptContent( "hallo" ), new CssContent( "hallo" ), false ), - array( new JavascriptContent( "hallo" ), new JavascriptContent( "HALLO" ), false ), + array( new JavaScriptContent( "hallo" ), null, false ), + array( new JavaScriptContent( "hallo" ), new JavaScriptContent( "hallo" ), true ), + array( new JavaScriptContent( "hallo" ), new CssContent( "hallo" ), false ), + array( new JavaScriptContent( "hallo" ), new JavaScriptContent( "HALLO" ), false ), ); } diff --git a/tests/phpunit/includes/content/TextContentTest.php b/tests/phpunit/includes/content/TextContentTest.php index dd03340b9a..3501aec44a 100644 --- a/tests/phpunit/includes/content/TextContentTest.php +++ b/tests/phpunit/includes/content/TextContentTest.php @@ -318,7 +318,7 @@ class TextContentTest extends MediaWikiLangTestCase { return array( array( new TextContent( "hallo" ), null, false ), array( new TextContent( "hallo" ), new TextContent( "hallo" ), true ), - array( new TextContent( "hallo" ), new JavascriptContent( "hallo" ), false ), + array( new TextContent( "hallo" ), new JavaScriptContent( "hallo" ), false ), array( new TextContent( "hallo" ), new WikitextContent( "hallo" ), false ), array( new TextContent( "hallo" ), new TextContent( "HALLO" ), false ), ); diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index ceb6d485f9..b76e9aae30 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -362,7 +362,7 @@ just a test" return array( array( new WikitextContent( "hallo" ), null, false ), array( new WikitextContent( "hallo" ), new WikitextContent( "hallo" ), true ), - array( new WikitextContent( "hallo" ), new JavascriptContent( "hallo" ), false ), + array( new WikitextContent( "hallo" ), new JavaScriptContent( "hallo" ), false ), array( new WikitextContent( "hallo" ), new TextContent( "hallo" ), false ), array( new WikitextContent( "hallo" ), new WikitextContent( "HALLO" ), false ), ); -- 2.20.1