@@ -264,6 +264,9 @@ |
||
264 | 264 | return Status::newGood(); |
265 | 265 | } |
266 | 266 | |
267 | + /** |
|
268 | + * @param \ValueValidators\Error $error |
|
269 | + */ |
|
267 | 270 | private function createStatusFromValidatorError( $error ) { |
268 | 271 | $params = array_merge( [ 'wikibase-validator-' . $error->getCode() ], $error->getParameters() ); |
269 | 272 | return Status::newFatal( ...$params ); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * @param EntityRevision|null $entityRevision The EntityRevision getEntityRevision() should return. |
54 | 54 | * @param Exception|null $exception The Exception getEntityRevision() should throw. |
55 | 55 | * |
56 | - * @return EntityRevisionLookup|MockObject |
|
56 | + * @return EntityRevisionLookup |
|
57 | 57 | */ |
58 | 58 | protected function getMockEntityRevisionLookup( |
59 | 59 | EntityId $entityId = null, |
@@ -33,7 +33,7 @@ |
||
33 | 33 | * @param string $type |
34 | 34 | * @param TermSearchResult[] $returnResults |
35 | 35 | * |
36 | - * @return ConfigurableTermSearchInteractor|MockObject |
|
36 | + * @return ConfigurableTermSearchInteractor |
|
37 | 37 | */ |
38 | 38 | private function getMockSearchInteractor( |
39 | 39 | $search, |
@@ -73,6 +73,9 @@ |
||
73 | 73 | MediaWikiServices::getInstance()->resetServiceForTesting( 'PermissionManager' ); |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $action |
|
78 | + */ |
|
76 | 79 | protected function doPermissionsTest( |
77 | 80 | $action, |
78 | 81 | array $params, |
@@ -77,6 +77,10 @@ |
||
77 | 77 | $this->assertTrue( $changeOpResult->isEntityChanged() ); |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $itemIdString |
|
82 | + * @param PropertyValueSnak $mainSnak |
|
83 | + */ |
|
80 | 84 | private function newItemWithClaim( $itemIdString, $mainSnak ) { |
81 | 85 | $item = new Item( new ItemId( $itemIdString ) ); |
82 | 86 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * @param EntityId $id |
82 | 82 | * |
83 | 83 | * @throws InvalidArgumentException |
84 | - * @return Item|Property |
|
84 | + * @return \Wikibase\DataModel\Entity\EntityDocument |
|
85 | 85 | */ |
86 | 86 | protected function makeEntity( EntityId $id ) { |
87 | 87 | if ( $id instanceof ItemId ) { |
@@ -153,7 +153,6 @@ |
||
153 | 153 | |
154 | 154 | /** |
155 | 155 | * @param string $flavor |
156 | - * @param EntityDocument[] $entities |
|
157 | 156 | * @param EntityId[] $redirects |
158 | 157 | * |
159 | 158 | * @return RdfDumpGenerator |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | } |
223 | 223 | |
224 | 224 | /** |
225 | - * @param $itemId |
|
225 | + * @param ItemId $itemId |
|
226 | 226 | * @return \PHPUnit\Framework\MockObject\MockObject |
227 | 227 | */ |
228 | 228 | private function getOutputPageEntityIdReaderReturningEntity( $itemId ) { |
@@ -235,8 +235,8 @@ discard block |
||
235 | 235 | } |
236 | 236 | |
237 | 237 | /** |
238 | - * @param $itemId |
|
239 | - * @return MockObject |
|
238 | + * @param ItemId $itemId |
|
239 | + * @return EntityRevisionLookup |
|
240 | 240 | */ |
241 | 241 | private function getEntityRevisionLookupReturningEntity( $itemId ): EntityRevisionLookup { |
242 | 242 | $entityRevisionLookup = $this->createMock( EntityRevisionLookup::class ); |
@@ -224,6 +224,7 @@ |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
227 | + * @param ItemId $id |
|
227 | 228 | * @return MockObject|OutputPageEntityIdReader |
228 | 229 | */ |
229 | 230 | protected function newEntityIdReaderReturningEntityId( $id ) { |