Siebrand has uploaded a new change for review. https://gerrit.wikimedia.org/r/50720
Change subject: Add type hint ...................................................................... Add type hint Change-Id: I3e61bfa681c947995dc92597554d81efb1d8d113 --- M tests/MessageCollectionTest.php 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate refs/changes/20/50720/1 diff --git a/tests/MessageCollectionTest.php b/tests/MessageCollectionTest.php index ed2a732..c3e8619 100644 --- a/tests/MessageCollectionTest.php +++ b/tests/MessageCollectionTest.php @@ -53,6 +53,7 @@ $collection = $group->initCollection( 'fi' ); $collection->loadTranslations(); + /** @var TMessage $translated */ $translated = $collection['translated']; $this->assertInstanceof( 'TMessage', $translated ); $this->assertEquals( 'translated', $translated->key() ); @@ -63,6 +64,7 @@ $this->assertEquals( 'translated', $translated->getProperty( 'status' ), 'message status is translated' ); $this->assertEquals( $revision, $translated->getProperty( 'revision' ) ); + /** @var TMessage $untranslated */ $untranslated = $collection['untranslated']; $this->assertInstanceof( 'TMessage', $untranslated ); $this->assertEquals( null, $untranslated->translation(), 'no translation is null' ); -- To view, visit https://gerrit.wikimedia.org/r/50720 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3e61bfa681c947995dc92597554d81efb1d8d113 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Translate Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits