X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTimestampTest.php;h=6352160b2cd7df49074c5db07515ee81a236ff3c;hb=312c7f2c1a05795c40af44e2c40700d4ee2489b4;hp=53d0424276232e38f9742b06603a11c299c552f5;hpb=430ecafd87990e9daa706dcbb3b48be48f9b846c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TimestampTest.php b/tests/phpunit/includes/TimestampTest.php index 53d0424276..6352160b2c 100644 --- a/tests/phpunit/includes/TimestampTest.php +++ b/tests/phpunit/includes/TimestampTest.php @@ -54,7 +54,7 @@ class TimestampTest extends MediaWikiTestCase { */ function testHumanOutput() { $timestamp = new MWTimestamp( time() - 3600 ); - $this->assertEquals( "1 hour ago", $timestamp->getHumanTimestamp()->toString() ); + $this->assertEquals( "1 hour ago", $timestamp->getHumanTimestamp()->inLanguage( 'en' )->text() ); } /**