X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FJavaScriptContentTest.php;h=434e17cfb46272de72cced2205f7ab5b7c809f91;hp=8cbbfb8a7847d15aea651b1ab5dc5e927eafbf2f;hb=1a40e0cc86b6ee0706606ded3ea243dfde4a414c;hpb=4de8aca50b9b7806df2c7dffa85b4260c62b5a9f diff --git a/tests/phpunit/includes/content/JavaScriptContentTest.php b/tests/phpunit/includes/content/JavaScriptContentTest.php index 8cbbfb8a78..434e17cfb4 100644 --- a/tests/phpunit/includes/content/JavaScriptContentTest.php +++ b/tests/phpunit/includes/content/JavaScriptContentTest.php @@ -141,26 +141,6 @@ class JavaScriptContentTest extends TextContentTest { ]; } - /** - * @todo Test needs database! - */ - /* - public function getRedirectChain() { - $text = $this->getNativeData(); - return Title::newFromRedirectArray( $text ); - } - */ - - /** - * @todo Test needs database! - */ - /* - public function getUltimateRedirectTarget() { - $text = $this->getNativeData(); - return Title::newFromRedirectRecurse( $text ); - } - */ - public static function dataIsCountable() { return [ [ '', @@ -314,6 +294,7 @@ class JavaScriptContentTest extends TextContentTest { } /** + * @covers JavaScriptContent::getRedirectTarget * @dataProvider provideGetRedirectTarget */ public function testGetRedirectTarget( $title, $text ) {