@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
| 192 | - * @return LocalizedTextProvider|MockObject |
|
| 192 | + * @return LocalizedTextProvider |
|
| 193 | 193 | */ |
| 194 | 194 | private function newLocalizedTextProvider(): LocalizedTextProvider { |
| 195 | 195 | return $this->createMock( LocalizedTextProvider::class ); |
@@ -211,6 +211,10 @@ discard block |
||
| 211 | 211 | ); |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | + /** |
|
| 215 | + * @param ItemId|null $itemId |
|
| 216 | + * @param string $editLinkUrl |
|
| 217 | + */ |
|
| 214 | 218 | private function newLinkingSpecialPageLinker( $itemId, $editLinkUrl ) { |
| 215 | 219 | $specialPageLinker = $this->newSpecialPageLinker(); |
| 216 | 220 | $specialPageLinker->expects( $this->once() ) |
@@ -221,7 +225,7 @@ discard block |
||
| 221 | 225 | } |
| 222 | 226 | |
| 223 | 227 | /** |
| 224 | - * @return MockObject|SpecialPageLinker |
|
| 228 | + * @return SpecialPageLinker |
|
| 225 | 229 | */ |
| 226 | 230 | private function newSpecialPageLinker() { |
| 227 | 231 | return $this->createMock( SpecialPageLinker::class ); |
@@ -173,6 +173,9 @@ |
||
| 173 | 173 | $this->assertLastMessageContains( 'Q4' ); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $expectedString |
|
| 178 | + */ |
|
| 176 | 179 | private function assertLastMessageContains( $expectedString ) { |
| 177 | 180 | $messages = $this->progressReporter->getMessages(); |
| 178 | 181 | |
@@ -433,6 +433,9 @@ |
||
| 433 | 433 | )->map(); |
| 434 | 434 | } |
| 435 | 435 | |
| 436 | + /** |
|
| 437 | + * @param string $idString |
|
| 438 | + */ |
|
| 436 | 439 | private function getMockEntityId( $idString ) { |
| 437 | 440 | $entityId = $this->createMock( EntityId::class ); |
| 438 | 441 | $entityId->method( '__toString' )->willReturn( $idString ); |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @return AliasesProvider|EntityDocument |
|
| 89 | + * @return EntityDocument |
|
| 90 | 90 | */ |
| 91 | 91 | abstract protected function getEntity(); |
| 92 | 92 | |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @return DescriptionsProvider|EntityDocument |
|
| 70 | + * @return EntityDocument |
|
| 71 | 71 | */ |
| 72 | 72 | abstract protected function getEntity(); |
| 73 | 73 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return LabelsProvider|EntityDocument |
|
| 68 | + * @return EntityDocument |
|
| 69 | 69 | */ |
| 70 | 70 | abstract protected function getEntity(); |
| 71 | 71 | |
@@ -190,6 +190,10 @@ |
||
| 190 | 190 | $this->fail( 'Should throw specific exception' ); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | + /** |
|
| 194 | + * @param integer $revisionId |
|
| 195 | + * @param string $slotRole |
|
| 196 | + */ |
|
| 193 | 197 | private function newRevisionRecord( $revisionId, $slotRole ) { |
| 194 | 198 | $revision = $this->createMock( RevisionRecord::class ); |
| 195 | 199 | $revision |
@@ -714,6 +714,9 @@ |
||
| 714 | 714 | ); |
| 715 | 715 | } |
| 716 | 716 | |
| 717 | + /** |
|
| 718 | + * @param integer $langCount |
|
| 719 | + */ |
|
| 717 | 720 | private function generateLanguageValuePairs( $langCount ) { |
| 718 | 721 | $result = []; |
| 719 | 722 | $langCodes = WikibaseRepo::getDefaultInstance()->getTermsLanguages()->getLanguages(); |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | $this->termValidatorFactory = $termValidatorFactory; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param NullChangeOp $changeOps |
|
| 30 | + */ |
|
| 28 | 31 | public function add( $changeOps ) { |
| 29 | 32 | $this->innerChangeOps->add( $changeOps ); |
| 30 | 33 | } |