@@ -116,6 +116,10 @@ |
||
116 | 116 | ->run(); |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $name |
|
121 | + * @param string $condition |
|
122 | + */ |
|
119 | 123 | protected function createConceptPage( $name, $condition ) { |
120 | 124 | |
121 | 125 | $this->pageCreator |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use ImportReporter; |
7 | 7 | use WikiImporter; |
8 | 8 | use RequestContext; |
9 | - |
|
10 | 9 | use RuntimeException; |
11 | 10 | |
12 | 11 | /** |
@@ -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 ); |
@@ -4,12 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | 6 | use SMW\Tests\Utils\Mock\MockTitle; |
7 | - |
|
8 | 7 | use SMW\MediaWiki\Hooks\InternalParseBeforeLinks; |
9 | - |
|
10 | 8 | use SMW\ApplicationFactory; |
11 | 9 | use SMW\Settings; |
12 | - |
|
13 | 10 | use Title; |
14 | 11 | |
15 | 12 | /** |
@@ -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 ); |
@@ -4,12 +4,9 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | 6 | use SMW\Tests\Utils\Mock\MockTitle; |
7 | - |
|
8 | 7 | use SMW\MediaWiki\Hooks\InternalParseBeforeLinks; |
9 | - |
|
10 | 8 | use SMW\ApplicationFactory; |
11 | 9 | use SMW\Settings; |
12 | - |
|
13 | 10 | use Title; |
14 | 11 | |
15 | 12 | /** |
@@ -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'], |
@@ -5,21 +5,16 @@ |
||
5 | 5 | use SMW\Tests\Utils\UtilityFactory; |
6 | 6 | use SMW\Tests\Utils\PageCreator; |
7 | 7 | use SMW\Tests\Utils\PageDeleter; |
8 | - |
|
9 | 8 | use SMW\Tests\MwDBaseUnitTestCase; |
10 | - |
|
11 | 9 | use SMW\ApplicationFactory; |
12 | 10 | use SMW\ParserData; |
13 | 11 | use SMW\DIWikiPage; |
14 | 12 | use SMW\ContentParser; |
15 | - |
|
16 | 13 | use ParserOutput; |
17 | 14 | use LinksUpdate; |
18 | 15 | use Revision; |
19 | 16 | use WikiPage; |
20 | 17 | use Title; |
21 | -use User; |
|
22 | - |
|
23 | 18 | use UnexpectedValueException; |
24 | 19 | |
25 | 20 | /** |
@@ -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' ); |
@@ -4,20 +4,13 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\MwDBaseUnitTestCase; |
6 | 6 | use SMW\Tests\Utils\UtilityFactory; |
7 | - |
|
8 | 7 | use SMW\Query\Language\ThingDescription; |
9 | 8 | use SMW\Query\Language\ClassDescription; |
10 | 9 | use SMW\Query\Language\SomeProperty; |
11 | - |
|
12 | 10 | use SMW\DIWikiPage; |
13 | 11 | use SMW\DIProperty; |
14 | 12 | use SMW\DataValueFactory; |
15 | - |
|
16 | -use SMWDIBlob as DIBlob; |
|
17 | 13 | use SMWQuery as Query; |
18 | -use SMWQueryResult as QueryResult; |
|
19 | -use SMWDataValue as DataValue; |
|
20 | -use SMWDataItem as DataItem; |
|
21 | 14 | use SMW\Query\PrintRequest as PrintRequest; |
22 | 15 | use SMWPropertyValue as PropertyValue; |
23 | 16 |
@@ -4,21 +4,14 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\MwDBaseUnitTestCase; |
6 | 6 | use SMW\Tests\Utils\UtilityFactory; |
7 | - |
|
8 | 7 | use SMW\SPARQLStore\SPARQLStore; |
9 | - |
|
10 | 8 | use SMW\Query\Language\ValueDescription; |
11 | 9 | use SMW\Query\Language\SomeProperty; |
12 | -use SMW\Query\Language\ThingDescription; |
|
13 | - |
|
14 | -use SMW\DIWikiPage; |
|
15 | 10 | use SMW\DIProperty; |
16 | - |
|
17 | 11 | use SMWDINumber as DINumber; |
18 | 12 | use SMWDIBlob as DIBlob; |
19 | 13 | use SMWDITime as DITime; |
20 | 14 | use SMWQuery as Query; |
21 | -use SMWQueryResult as QueryResult; |
|
22 | 15 | use SMwConjunction as Conjunction; |
23 | 16 | |
24 | 17 | /** |
@@ -4,20 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\MwDBaseUnitTestCase; |
6 | 6 | use SMW\Tests\Utils\UtilityFactory; |
7 | - |
|
8 | -use SMW\DIWikiPage; |
|
9 | 7 | use SMW\DIProperty; |
10 | 8 | use SMW\DataValueFactory; |
11 | - |
|
12 | 9 | use SMW\Query\Language\SomeProperty; |
13 | 10 | use SMW\Query\Language\ThingDescription; |
14 | 11 | use SMW\Query\Language\ValueDescription; |
15 | - |
|
16 | -use SMWDIBlob as DIBlob; |
|
17 | 12 | use SMWQuery as Query; |
18 | -use SMWQueryResult as QueryResult; |
|
19 | -use SMWDataValue as DataValue; |
|
20 | -use SMWDataItem as DataItem; |
|
21 | 13 | use SMW\Query\PrintRequest as PrintRequest; |
22 | 14 | use SMWPropertyValue as PropertyValue; |
23 | 15 | use SMWExporter as Exporter; |
@@ -4,23 +4,14 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\MwDBaseUnitTestCase; |
6 | 6 | use SMW\Tests\Utils\UtilityFactory; |
7 | - |
|
8 | -use SMW\Query\Language\ThingDescription; |
|
9 | 7 | use SMW\Query\Language\ValueDescription; |
10 | -use SMW\Query\Language\Conjunction; |
|
11 | 8 | use SMW\Query\Language\Disjunction; |
12 | 9 | use SMW\Query\Language\ClassDescription; |
13 | 10 | use SMW\Query\Language\SomeProperty; |
14 | - |
|
15 | 11 | use SMW\DIWikiPage; |
16 | 12 | use SMW\DIProperty; |
17 | -use SMW\SemanticData; |
|
18 | - |
|
19 | 13 | use SMWQueryParser as QueryParser; |
20 | -use SMWDIBlob as DIBlob; |
|
21 | -use SMWDINumber as DINumber; |
|
22 | 14 | use SMWQuery as Query; |
23 | -use SMWPropertyValue as PropertyValue; |
|
24 | 15 | |
25 | 16 | /** |
26 | 17 | * |
@@ -4,16 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use SMW\Tests\MwDBaseUnitTestCase; |
6 | 6 | use SMW\Tests\Utils\UtilityFactory; |
7 | - |
|
8 | 7 | use SMW\Query\Language\ThingDescription; |
9 | 8 | use SMW\Query\Language\SomeProperty; |
10 | - |
|
11 | -use SMW\DIWikiPage; |
|
12 | 9 | use SMW\DIProperty; |
13 | 10 | use SMW\DataValueFactory; |
14 | - |
|
15 | 11 | use SMWQuery as Query; |
16 | -use SMWQueryResult as QueryResult; |
|
17 | 12 | use SMW\Query\PrintRequest as PrintRequest; |
18 | 13 | use SMWPropertyValue as PropertyValue; |
19 | 14 |