@@ -166,6 +166,9 @@ discard block |
||
166 | 166 | } |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param \SMW\SemanticData $semanticData |
|
171 | + */ |
|
169 | 172 | protected function assertThatSemanticDataValuesForPropertyAreSet( $expected, $semanticData ) { |
170 | 173 | |
171 | 174 | $runValueAssert = false; |
@@ -186,6 +189,10 @@ discard block |
||
186 | 189 | // $this->assertTrue( $runValueAssert, __METHOD__ ); |
187 | 190 | } |
188 | 191 | |
192 | + /** |
|
193 | + * @param string $source |
|
194 | + * @param string $target |
|
195 | + */ |
|
189 | 196 | protected function createPageWithRedirectFor( $source, $target ) { |
190 | 197 | |
191 | 198 | $this->pageCreator |
@@ -195,6 +202,9 @@ discard block |
||
195 | 202 | return $this->pageCreator->getPage(); |
196 | 203 | } |
197 | 204 | |
205 | + /** |
|
206 | + * @param string $target |
|
207 | + */ |
|
198 | 208 | protected function movePageToTargetRedirect( $page, $target ) { |
199 | 209 | |
200 | 210 | $moveToTargetTitle = Title::newFromText( $target ); |
@@ -216,6 +216,9 @@ |
||
216 | 216 | |
217 | 217 | } |
218 | 218 | |
219 | + /** |
|
220 | + * @param \SMW\SemanticData $semanticData |
|
221 | + */ |
|
219 | 222 | protected function assertBatchesOfDateValues( $assertionBatches, $semanticData ) { |
220 | 223 | foreach ( $assertionBatches as $singleAssertionBatch ) { |
221 | 224 | $this->assertThatDateValuesAreSet( $singleAssertionBatch, $semanticData ); |
@@ -163,6 +163,9 @@ |
||
163 | 163 | $this->assertPropertyCount( $expected['poAfter'], $expected['storeAfter'], $parserData ); |
164 | 164 | } |
165 | 165 | |
166 | + /** |
|
167 | + * @param ParserData $parserData |
|
168 | + */ |
|
166 | 169 | protected function assertPropertyCount( $poExpected, $storeExpected, $parserData ) { |
167 | 170 | $this->semanticDataValidator->assertThatSemanticDataHasPropertyCountOf( |
168 | 171 | $poExpected['count'], |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use SMW\Tests\Utils\PageCreator; |
13 | 13 | use Title; |
14 | 14 | use UnexpectedValueException; |
15 | -use User; |
|
16 | 15 | use WikiPage; |
17 | 16 | |
18 | 17 | /** |
@@ -111,6 +111,9 @@ |
||
111 | 111 | ); |
112 | 112 | } |
113 | 113 | |
114 | + /** |
|
115 | + * @param string $categoryName |
|
116 | + */ |
|
114 | 117 | private function searchForResultsThatCompareEqualToClassOf( $categoryName ) { |
115 | 118 | |
116 | 119 | $propertyValue = new PropertyValue( '__pro' ); |
@@ -78,6 +78,9 @@ |
||
78 | 78 | $this->assertStoreHasDataToRefresh( true ); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param boolean $useJobs |
|
83 | + */ |
|
81 | 84 | protected function assertStoreHasDataToRefresh( $useJobs ) { |
82 | 85 | $refreshPosition = $this->title->getArticleID(); |
83 | 86 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SMW\ApplicationFactory; |
6 | 6 | use SMW\SchemaManager; |
7 | 7 | use Title; |
8 | -use WikiPage; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * @license GNU GPL v2+ |
@@ -136,6 +136,7 @@ discard block |
||
136 | 136 | /** |
137 | 137 | * @since 2.2 |
138 | 138 | * |
139 | + * @param string $key |
|
139 | 140 | * @return array|integer|string|boolean |
140 | 141 | * @throws RuntimeException |
141 | 142 | */ |
@@ -223,6 +224,11 @@ discard block |
||
223 | 224 | return $this->getContentsFor( $key ); |
224 | 225 | } |
225 | 226 | |
227 | + /** |
|
228 | + * @param string $index |
|
229 | + * |
|
230 | + * @return string |
|
231 | + */ |
|
226 | 232 | private function getFileContentsFor( $index ) { |
227 | 233 | |
228 | 234 | $contents = $this->fileReader->read(); |
@@ -144,7 +144,6 @@ |
||
144 | 144 | /** |
145 | 145 | * Returns RequestContext object |
146 | 146 | * |
147 | - * @param array $params |
|
148 | 147 | * |
149 | 148 | * @return RequestContext |
150 | 149 | */ |
@@ -195,6 +195,9 @@ discard block |
||
195 | 195 | } |
196 | 196 | } |
197 | 197 | |
198 | + /** |
|
199 | + * @param string $inputLabel |
|
200 | + */ |
|
198 | 201 | protected function assertRegistryFindsIdForLabels( $inputLabel, array $equivalentLabels ) { |
199 | 202 | $id = '_wpg'; |
200 | 203 | |
@@ -209,6 +212,9 @@ discard block |
||
209 | 212 | } |
210 | 213 | } |
211 | 214 | |
215 | + /** |
|
216 | + * @param string $inputLabel |
|
217 | + */ |
|
212 | 218 | protected function assertRegistryFindsIdForAliases( $inputLabel, array $equivalentLabels ) { |
213 | 219 | $id = '_wpg'; |
214 | 220 |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | ); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param CachedFactbox $instance |
|
127 | + */ |
|
125 | 128 | public function assertPreProcess( $expected, $result, $outputPage, $instance ) { |
126 | 129 | |
127 | 130 | if ( $expected['text'] ) { |
@@ -150,6 +153,9 @@ discard block |
||
150 | 153 | } |
151 | 154 | } |
152 | 155 | |
156 | + /** |
|
157 | + * @param CachedFactbox $instance |
|
158 | + */ |
|
153 | 159 | public function assertPostProcess( $expected, $result, $outputPage, $instance ) { |
154 | 160 | |
155 | 161 | $this->assertEquals( |